Enum Http3ErrorCode
- All Implemented Interfaces:
Serializable, Comparable<Http3ErrorCode>
Different HTTP3 error codes.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA stream required by the HTTP/3 connection was closed or reset.The TCP connection established in response to a CONNECT request was reset or abnormally closed.Datagram or Capsule Protocol parse error rfc9297 registered in IANA http3 IANA Http3 Error CodesThe endpoint detected that its peer is exhibiting a behavior that might be generating excessive load.A frame that fails to satisfy layout requirements or with an invalid size was received.A frame was received that was not permitted in the current state or on the current stream.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.A Stream ID or Push ID was used incorrectly, such as exceeding a limit, reducing a limit, or being reused.An internal error has occurred in the HTTP stack.An HTTP message was malformed and cannot be processed.No SETTINGS frame was received at the beginning of the control stream.No error.The request or its response (including pushed response) is cancelled.The client's stream terminated without containing a fully-formed request.A server rejected a request without performing any application processing.An endpoint detected an error in the payload of a SETTINGS frame.The endpoint detected that its peer created a stream that it will not accept.The requested operation cannot be served over HTTP/3.The encoder failed to interpret a decoder instruction received on the decoder stream.The decoder failed to interpret an encoded field section and is not able to continue decoding that field section.The decoder failed to interpret an encoder instruction received on the encoder stream. -
Method Summary
Modifier and TypeMethodDescriptionintcode()static Http3ErrorCodeReturns the enum constant of this type with the specified name.static Http3ErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
H3_DATAGRAM_ERROR
Datagram or Capsule Protocol parse error rfc9297 registered in IANA http3 IANA Http3 Error Codes -
H3_NO_ERROR
No error. This is used when the connection or stream needs to be closed, but there is no error to signal. -
H3_GENERAL_PROTOCOL_ERROR
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. -
H3_INTERNAL_ERROR
An internal error has occurred in the HTTP stack. -
H3_STREAM_CREATION_ERROR
The endpoint detected that its peer created a stream that it will not accept. -
H3_CLOSED_CRITICAL_STREAM
A stream required by the HTTP/3 connection was closed or reset. -
H3_FRAME_UNEXPECTED
A frame was received that was not permitted in the current state or on the current stream. -
H3_FRAME_ERROR
A frame that fails to satisfy layout requirements or with an invalid size was received. -
H3_EXCESSIVE_LOAD
The endpoint detected that its peer is exhibiting a behavior that might be generating excessive load. -
H3_ID_ERROR
A Stream ID or Push ID was used incorrectly, such as exceeding a limit, reducing a limit, or being reused. -
H3_SETTINGS_ERROR
An endpoint detected an error in the payload of a SETTINGS frame. -
H3_MISSING_SETTINGS
No SETTINGS frame was received at the beginning of the control stream. -
H3_REQUEST_REJECTED
A server rejected a request without performing any application processing. -
H3_REQUEST_CANCELLED
The request or its response (including pushed response) is cancelled. -
H3_REQUEST_INCOMPLETE
The client's stream terminated without containing a fully-formed request. -
H3_MESSAGE_ERROR
An HTTP message was malformed and cannot be processed. -
H3_CONNECT_ERROR
The TCP connection established in response to a CONNECT request was reset or abnormally closed. -
H3_VERSION_FALLBACK
The requested operation cannot be served over HTTP/3. The peer should retry over HTTP/1.1. -
QPACK_DECOMPRESSION_FAILED
The decoder failed to interpret an encoded field section and is not able to continue decoding that field section. -
QPACK_ENCODER_STREAM_ERROR
The decoder failed to interpret an encoder instruction received on the encoder stream. -
QPACK_DECODER_STREAM_ERROR
The encoder failed to interpret a decoder instruction received on the decoder stream.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
code
public int code()
-