Top Description Inners Fields Constructors Methods
org.eclipse.jetty.http2

public final Enum ErrorCode

extends Enum<ErrorCode>
Class Inheritance
Imports
java.util.HashMap, .Locale, .Map

Standard HTTP/2 error codes.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
public static final ErrorCode
CANCEL_STREAM_ERROR

Indicates that a stream is no longer needed.

public final int
public static final ErrorCode
COMPRESSION_ERROR

Indicates inability to maintain the HPACK compression context.

public static final ErrorCode
ENHANCE_YOUR_CALM_ERROR

Indicates that the other peer might be generating excessive load.

public static final ErrorCode
FLOW_CONTROL_ERROR

Indicates an HTTP/2 flow control violation.

public static final ErrorCode
FRAME_SIZE_ERROR

Indicates that a frame has an invalid length.

public static final ErrorCode
HTTP_1_1_REQUIRED_ERROR

Indicates that HTTP/1.1 must be used rather than HTTP/2.

public static final ErrorCode
HTTP_CONNECT_ERROR

Indicates that the connection established by an HTTP CONNECT was abnormally closed.

public static final ErrorCode
INADEQUATE_SECURITY_ERROR

Indicates that the transport properties do not meet minimum security requirements.

public static final ErrorCode
INTERNAL_ERROR

Indicates an internal error.

public static final ErrorCode
NO_ERROR

Indicates no errors.

public static final ErrorCode
PROTOCOL_ERROR

Indicates a generic HTTP/2 protocol violation.

public static final ErrorCode
REFUSED_STREAM_ERROR

Indicates that a stream was rejected before application processing.

public static final ErrorCode
SETTINGS_TIMEOUT_ERROR

Indicates that a SETTINGS frame did not receive a reply in a timely manner.

public static final ErrorCode
STREAM_CLOSED_ERROR

Indicates that a stream frame has been received after the stream was closed.

Constructor Summary

AccessConstructor and Description
private
ErrorCode(int code)

Method Summary

Modifier and TypeMethod and Description
public static ErrorCode
from(int error)

public static String
toString(int error, String dft)

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

Field Detail

CANCEL_STREAM_ERRORback to summary
public static final ErrorCode CANCEL_STREAM_ERROR

Indicates that a stream is no longer needed.

codeback to summary
public final int code
COMPRESSION_ERRORback to summary
public static final ErrorCode COMPRESSION_ERROR

Indicates inability to maintain the HPACK compression context.

ENHANCE_YOUR_CALM_ERRORback to summary
public static final ErrorCode ENHANCE_YOUR_CALM_ERROR

Indicates that the other peer might be generating excessive load.

FLOW_CONTROL_ERRORback to summary
public static final ErrorCode FLOW_CONTROL_ERROR

Indicates an HTTP/2 flow control violation.

FRAME_SIZE_ERRORback to summary
public static final ErrorCode FRAME_SIZE_ERROR

Indicates that a frame has an invalid length.

HTTP_1_1_REQUIRED_ERRORback to summary
public static final ErrorCode HTTP_1_1_REQUIRED_ERROR

Indicates that HTTP/1.1 must be used rather than HTTP/2.

HTTP_CONNECT_ERRORback to summary
public static final ErrorCode HTTP_CONNECT_ERROR

Indicates that the connection established by an HTTP CONNECT was abnormally closed.

INADEQUATE_SECURITY_ERRORback to summary
public static final ErrorCode INADEQUATE_SECURITY_ERROR

Indicates that the transport properties do not meet minimum security requirements.

INTERNAL_ERRORback to summary
public static final ErrorCode INTERNAL_ERROR

Indicates an internal error.

NO_ERRORback to summary
public static final ErrorCode NO_ERROR

Indicates no errors.

PROTOCOL_ERRORback to summary
public static final ErrorCode PROTOCOL_ERROR

Indicates a generic HTTP/2 protocol violation.

REFUSED_STREAM_ERRORback to summary
public static final ErrorCode REFUSED_STREAM_ERROR

Indicates that a stream was rejected before application processing.

SETTINGS_TIMEOUT_ERRORback to summary
public static final ErrorCode SETTINGS_TIMEOUT_ERROR

Indicates that a SETTINGS frame did not receive a reply in a timely manner.

STREAM_CLOSED_ERRORback to summary
public static final ErrorCode STREAM_CLOSED_ERROR

Indicates that a stream frame has been received after the stream was closed.

Constructor Detail

ErrorCodeback to summary
private ErrorCode(int code)

Method Detail

fromback to summary
public static ErrorCode from(int error)
toStringback to summary
public static String toString(int error, String dft)
valueOfback to summary
public static ErrorCode valueOf(String name)
valuesback to summary
public static ErrorCode[] values()
org.eclipse.jetty.http2 back to summary

private Class ErrorCode.Codes

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final Map<Integer, ErrorCode>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

codesback to summary
private static final Map<Integer, ErrorCode> codes

Constructor Detail

Codesback to summary
private Codes()