Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grease HTTP error codes #3360

Merged
merged 3 commits into from Jan 21, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 12 additions & 1 deletion draft-ietf-quic-http.md
Expand Up @@ -925,7 +925,9 @@ transferred. Endpoints MUST NOT consider these streams to have any meaning upon
receipt.

The payload and length of the stream are selected in any manner the
implementation chooses.
implementation chooses. Implementations MAY terminate these streams cleanly, or
MAY abruptly terminate them. When terminating abruptly, the error code
H3_NO_ERROR or a reserved error code ({{http-error-codes}}) SHOULD be used.


# HTTP Framing Layer {#http-framing-layer}
Expand Down Expand Up @@ -1458,6 +1460,11 @@ H3_VERSION_FALLBACK (0x110):
: The requested operation cannot be served over HTTP/3. The peer should
retry over HTTP/1.1.

Error codes of the format `0x1f * N + 0x21` for integer values of N are reserved
to exercise the requirement that unknown error codes be treated as equivalent to
H3_NO_ERROR ({{extensions}}). Implementations SHOULD select an error code from
this space with some probability when they would have sent H3_NO_ERROR.

# Extensions to HTTP/3 {#extensions}

HTTP/3 permits extension of the protocol. Within the limitations described in
Expand Down Expand Up @@ -1713,6 +1720,10 @@ The entries in the {{iana-error-table}} are registered by this document.
| --------------------------------- | ---------- | ---------------------------------------- | ---------------------- |
{: #iana-error-table title="Initial HTTP/3 Error Codes"}

Additionally, each code of the format `0x1f * N + 0x21` for integer values of N
(that is, `0x21`, `0x40`, ..., through `0x3FFFFFFFFFFFFFFE`) MUST NOT be
assigned by IANA.

### Stream Types {#iana-stream-types}

This document establishes a registry for HTTP/3 unidirectional stream types. The
Expand Down