pub struct Code { /* private fields */ }
Expand description
An HTTP/3 “application error code”.
Implementations§
source§impl Code
impl Code
sourcepub fn value(&self) -> u64
pub fn value(&self) -> u64
Numerical error code
See https://www.rfc-editor.org/rfc/rfc9114.html#errors and https://www.rfc-editor.org/rfc/rfc9000.html#error-codes
source§impl Code
impl Code
sourcepub const H3_DATAGRAM_ERROR: Code = _
pub const H3_DATAGRAM_ERROR: Code = _
Datagram or capsule parse error See: https://www.rfc-editor.org/rfc/rfc9297#section-5.2
sourcepub const H3_NO_ERROR: Code = _
pub const H3_NO_ERROR: Code = _
No error. This is used when the connection or stream needs to be closed, but there is no error to signal.
sourcepub const H3_GENERAL_PROTOCOL_ERROR: Code = _
pub const H3_GENERAL_PROTOCOL_ERROR: Code = _
Peer violated protocol requirements in a way that does not match a more specific error code, or endpoint declines to use the more specific error code.
sourcepub const H3_INTERNAL_ERROR: Code = _
pub const H3_INTERNAL_ERROR: Code = _
An internal error has occurred in the HTTP stack.
sourcepub const H3_STREAM_CREATION_ERROR: Code = _
pub const H3_STREAM_CREATION_ERROR: Code = _
The endpoint detected that its peer created a stream that it will not accept.
sourcepub const H3_CLOSED_CRITICAL_STREAM: Code = _
pub const H3_CLOSED_CRITICAL_STREAM: Code = _
A stream required by the HTTP/3 connection was closed or reset.
sourcepub const H3_FRAME_UNEXPECTED: Code = _
pub const H3_FRAME_UNEXPECTED: Code = _
A frame was received that was not permitted in the current state or on the current stream.
sourcepub const H3_FRAME_ERROR: Code = _
pub const H3_FRAME_ERROR: Code = _
A frame that fails to satisfy layout requirements or with an invalid size was received.
sourcepub const H3_EXCESSIVE_LOAD: Code = _
pub const H3_EXCESSIVE_LOAD: Code = _
The endpoint detected that its peer is exhibiting a behavior that might be generating excessive load.
sourcepub const H3_ID_ERROR: Code = _
pub const H3_ID_ERROR: Code = _
A Stream ID or Push ID was used incorrectly, such as exceeding a limit, reducing a limit, or being reused.
sourcepub const H3_SETTINGS_ERROR: Code = _
pub const H3_SETTINGS_ERROR: Code = _
An endpoint detected an error in the payload of a SETTINGS frame.
sourcepub const H3_MISSING_SETTINGS: Code = _
pub const H3_MISSING_SETTINGS: Code = _
No SETTINGS frame was received at the beginning of the control stream.
sourcepub const H3_REQUEST_REJECTED: Code = _
pub const H3_REQUEST_REJECTED: Code = _
A server rejected a request without performing any application processing.
sourcepub const H3_REQUEST_CANCELLED: Code = _
pub const H3_REQUEST_CANCELLED: Code = _
The request or its response (including pushed response) is cancelled.
sourcepub const H3_REQUEST_INCOMPLETE: Code = _
pub const H3_REQUEST_INCOMPLETE: Code = _
The client’s stream terminated without containing a fully-formed request.
sourcepub const H3_MESSAGE_ERROR: Code = _
pub const H3_MESSAGE_ERROR: Code = _
An HTTP message was malformed and cannot be processed.
sourcepub const H3_CONNECT_ERROR: Code = _
pub const H3_CONNECT_ERROR: Code = _
The TCP connection established in response to a CONNECT request was reset or abnormally closed.
sourcepub const H3_VERSION_FALLBACK: Code = _
pub const H3_VERSION_FALLBACK: Code = _
The requested operation cannot be served over HTTP/3. The peer should retry over HTTP/1.1.
sourcepub const QPACK_DECOMPRESSION_FAILED: Code = _
pub const QPACK_DECOMPRESSION_FAILED: Code = _
The decoder failed to interpret an encoded field section and is not able to continue decoding that field section.
sourcepub const QPACK_ENCODER_STREAM_ERROR: Code = _
pub const QPACK_ENCODER_STREAM_ERROR: Code = _
The decoder failed to interpret an encoder instruction received on the encoder stream.
sourcepub const QPACK_DECODER_STREAM_ERROR: Code = _
pub const QPACK_DECODER_STREAM_ERROR: Code = _
The encoder failed to interpret a decoder instruction received on the decoder stream.