Package io.servicetalk.http.api
Class Http2ErrorCode
java.lang.Object
io.servicetalk.http.api.Http2ErrorCode
Represents an http/2 error code.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Http2ErrorCode
static final Http2ErrorCode
static final Http2ErrorCode
static final Http2ErrorCode
static final Http2ErrorCode
static final Http2ErrorCode
static final Http2ErrorCode
static final Http2ErrorCode
static final Http2ErrorCode
static final Http2ErrorCode
static final Http2ErrorCode
static final Http2ErrorCode
static final Http2ErrorCode
static final Http2ErrorCode
-
Method Summary
Modifier and TypeMethodDescriptionint
code()
Get the decimal value of the error code.boolean
int
hashCode()
name()
Get the string description of the error code.static Http2ErrorCode
of
(int errorCode) Convert from the decimal value of error code into aHttp2ErrorCode
.static Http2ErrorCode
toString()
-
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:
Http2ErrorCode
representingerrorCode
, ornull
if no mapping exists.
-
of
- Parameters:
errorCode
- numeric value of error code.name
- TheString
name description for the error code.- Returns:
- a
Http2ErrorCode
for the specifiederrorCode
andname
.
-