Package org.eclipse.jetty.http2
Enum ErrorCode
- All Implemented Interfaces:
Serializable
,Comparable<ErrorCode>
,java.lang.constant.Constable
Standard HTTP/2 error codes.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIndicates that a stream is no longer needed.Indicates inability to maintain the HPACK compression context.Indicates that the other peer might be generating excessive load.Indicates an HTTP/2 flow control violation.Indicates that a frame has an invalid length.Indicates that HTTP/1.1 must be used rather than HTTP/2.Indicates that the connection established by an HTTP CONNECT was abnormally closed.Indicates that the transport properties do not meet minimum security requirements.Indicates an internal error.Indicates no errors.Indicates a generic HTTP/2 protocol violation.Indicates that a stream was rejected before application processing.Indicates that a SETTINGS frame did not receive a reply in a timely manner.Indicates that a stream frame has been received after the stream was closed. -
Field Summary
-
Method Summary
-
Enum Constant Details
-
NO_ERROR
Indicates no errors. -
PROTOCOL_ERROR
Indicates a generic HTTP/2 protocol violation. -
INTERNAL_ERROR
Indicates an internal error. -
FLOW_CONTROL_ERROR
Indicates an HTTP/2 flow control violation. -
SETTINGS_TIMEOUT_ERROR
Indicates that a SETTINGS frame did not receive a reply in a timely manner. -
STREAM_CLOSED_ERROR
Indicates that a stream frame has been received after the stream was closed. -
FRAME_SIZE_ERROR
Indicates that a frame has an invalid length. -
REFUSED_STREAM_ERROR
Indicates that a stream was rejected before application processing. -
CANCEL_STREAM_ERROR
Indicates that a stream is no longer needed. -
COMPRESSION_ERROR
Indicates inability to maintain the HPACK compression context. -
HTTP_CONNECT_ERROR
Indicates that the connection established by an HTTP CONNECT was abnormally closed. -
ENHANCE_YOUR_CALM_ERROR
Indicates that the other peer might be generating excessive load. -
INADEQUATE_SECURITY_ERROR
Indicates that the transport properties do not meet minimum security requirements. -
HTTP_1_1_REQUIRED_ERROR
Indicates that HTTP/1.1 must be used rather than HTTP/2.
-
-
Field Details
-
code
public final int code
-
-
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
-
from
-
toString
-