Top Description Fields Constructors Methods
org.apache.hc.core5.http2

public final Enum H2Error

extends Enum<H2Error>
Class Inheritance
Imports
java.util.concurrent.ConcurrentHashMap, .ConcurrentMap

Errors codes defined by HTTP/2 specification.
Since
5.0

Field Summary

Modifier and TypeField and Description
public static final H2Error
CANCEL

Stream canceled.

pack-priv int
public static final H2Error
COMPRESSION_ERROR

Compression state not updated.

public static final H2Error
CONNECT_ERROR

TCP connection error.

public static final H2Error
ENHANCE_YOUR_CALM

Processing capacity exceeded.

public static final H2Error
FLOW_CONTROL_ERROR

Flow control limits exceeded.

public static final H2Error
FRAME_SIZE_ERROR

Frame size incorrect.

public static final H2Error
HTTP_1_1_REQUIRED

Use HTTP/1.1 for the request.

public static final H2Error
INADEQUATE_SECURITY

Negotiated TLS parameters not acceptable.

public static final H2Error
INTERNAL_ERROR

Implementation fault

The endpoint encountered an unexpected internal error.

private static final ConcurrentMap<Integer, H2Error>
public static final H2Error
NO_ERROR

Graceful shutdown

The associated condition is not as a result of an error.

public static final H2Error
PROTOCOL_ERROR

Protocol error detected

The endpoint detected an unspecific protocol error.

public static final H2Error
REFUSED_STREAM

Stream not processed

The endpoint refuses the stream prior to performing any application processing.

public static final H2Error
SETTINGS_TIMEOUT

Settings not acknowledged.

public static final H2Error
STREAM_CLOSED

Frame received for closed stream.

Constructor Summary

AccessConstructor and Description
private
H2Error(final int code)

Method Summary

Modifier and TypeMethod and Description
public static H2Error
getByCode(final int code)

public int
public static H2Error
public static H2Error[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CANCELback to summary
public static final H2Error CANCEL

Stream canceled.

Used by the endpoint to indicate that the stream is no longer needed

codeback to summary
pack-priv int code
COMPRESSION_ERRORback to summary
public static final H2Error COMPRESSION_ERROR

Compression state not updated.

The endpoint is unable to maintain the header compression context for the connection.

CONNECT_ERRORback to summary
public static final H2Error CONNECT_ERROR

TCP connection error.

The connection established in response to a CONNECT request was reset or abnormally closed.

ENHANCE_YOUR_CALMback to summary
public static final H2Error ENHANCE_YOUR_CALM

Processing capacity exceeded.

The endpoint detected that its peer is exhibiting a behavior that might be generating excessive load.

FLOW_CONTROL_ERRORback to summary
public static final H2Error FLOW_CONTROL_ERROR

Flow control limits exceeded.

The endpoint detected that its peer violated the flow control protocol.

FRAME_SIZE_ERRORback to summary
public static final H2Error FRAME_SIZE_ERROR

Frame size incorrect.

The endpoint received a frame with an invalid size.

HTTP_1_1_REQUIREDback to summary
public static final H2Error HTTP_1_1_REQUIRED

Use HTTP/1.1 for the request.

The endpoint requires that HTTP/1.1 be used instead of HTTP/2.

INADEQUATE_SECURITYback to summary
public static final H2Error INADEQUATE_SECURITY

Negotiated TLS parameters not acceptable.

The underlying transport has properties that do not meet minimum security requirements.

INTERNAL_ERRORback to summary
public static final H2Error INTERNAL_ERROR

Implementation fault

The endpoint encountered an unexpected internal error.

MAP_BY_CODEback to summary
private static final ConcurrentMap<Integer, H2Error> MAP_BY_CODE
NO_ERRORback to summary
public static final H2Error NO_ERROR

Graceful shutdown

The associated condition is not as a result of an error.

PROTOCOL_ERRORback to summary
public static final H2Error PROTOCOL_ERROR

Protocol error detected

The endpoint detected an unspecific protocol error. This error is for use when a more specific error code is not available

REFUSED_STREAMback to summary
public static final H2Error REFUSED_STREAM

Stream not processed

The endpoint refuses the stream prior to performing any application processing.

SETTINGS_TIMEOUTback to summary
public static final H2Error SETTINGS_TIMEOUT

Settings not acknowledged.

The endpoint sent a SETTINGS frame, but did not receive a response in a timely manner.

STREAM_CLOSEDback to summary
public static final H2Error STREAM_CLOSED

Frame received for closed stream.

The endpoint received a frame after a stream was half closed.

Constructor Detail

H2Errorback to summary
private H2Error(final int code)

Method Detail

getByCodeback to summary
public static H2Error getByCode(final int code)
getCodeback to summary
public int getCode()
valueOfback to summary
public static H2Error valueOf(String name)
valuesback to summary
public static H2Error[] values()