Package io.servicetalk.http.api
Class Http2ErrorCode
java.lang.Object
io.servicetalk.http.api.Http2ErrorCode
Represents an http/2 error code.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Http2ErrorCodestatic final Http2ErrorCodestatic final Http2ErrorCodestatic final Http2ErrorCodestatic final Http2ErrorCodestatic final Http2ErrorCodestatic final Http2ErrorCodestatic final Http2ErrorCodestatic final Http2ErrorCodestatic final Http2ErrorCodestatic final Http2ErrorCodestatic final Http2ErrorCodestatic final Http2ErrorCodestatic final Http2ErrorCode -
Method Summary
Modifier and TypeMethodDescriptionintcode()Get the decimal value of the error code.booleaninthashCode()name()Get the string description of the error code.static Http2ErrorCodeof(int errorCode) Convert from the decimal value of error code into aHttp2ErrorCode.static Http2ErrorCodetoString()
-
Field Details
-
NO_ERROR
-
PROTOCOL_ERROR
-
INTERNAL_ERROR
-
FLOW_CONTROL_ERROR
-
SETTINGS_TIMEOUT
-
STREAM_CLOSED
-
FRAME_SIZE_ERROR
-
REFUSED_STREAM
-
CANCEL
-
COMPRESSION_ERROR
-
CONNECT_ERROR
-
ENHANCE_YOUR_CALM
-
INADEQUATE_SECURITY
-
HTTP_1_1_REQUIRED
-
-
Method Details
-
code
public int code()Get the decimal value of the error code.- Returns:
- the decimal value of the error code.
-
name
Get the string description of the error code.- Returns:
- the string description of the error code.
-
toString
-
hashCode
public int hashCode() -
equals
-
of
Convert from the decimal value of error code into aHttp2ErrorCode.- Parameters:
errorCode- numeric value of error code.- Returns:
Http2ErrorCoderepresentingerrorCode, ornullif no mapping exists.
-
of
- Parameters:
errorCode- numeric value of error code.name- TheStringname description for the error code.- Returns:
- a
Http2ErrorCodefor the specifiederrorCodeandname.
-