apple / apple/swift-http-api-proposal

Ability to emit a specific HTTP stream error code to the client

Open
#120 0 comments 0 reactions 0 assignees View on GitHub
http-server
Dominant language
Swift
Stars
66
Forks
21
Avg merge
7h 39m
Merged PRs (30d)
2

Description

Should we allow the server implementation to emit a specific HTTP stream error code to the client?

There error codes in HTTP/2 and HTTP/3 might be useful to applications, as we have special handling for them on the client-side:

H3_EXCESSIVE_LOAD / ENHANCE_YOUR_CALM
H3_REQUEST_REJECTED / REFUSED_STREAM
H3_VERSION_FALLBACK / HTTP_1_1_REQUIRED

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.