Package io.servicetalk.http.api
Class HttpResponseStatus
java.lang.Object
io.servicetalk.http.api.HttpResponseStatus
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HttpResponseStatus
202 Acceptedstatic final HttpResponseStatus
208 Already Reportedstatic final HttpResponseStatus
502 Bad Gatewaystatic final HttpResponseStatus
400 Bad Requeststatic final HttpResponseStatus
409 Conflictstatic final HttpResponseStatus
100 Continuestatic final HttpResponseStatus
201 Createdstatic final HttpResponseStatus
103 Early Hintsstatic final HttpResponseStatus
417 Expectation Failedstatic final HttpResponseStatus
424 Failed Dependencystatic final HttpResponseStatus
403 Forbiddenstatic final HttpResponseStatus
302 Foundstatic final HttpResponseStatus
504 Gateway Timeoutstatic final HttpResponseStatus
410 Gonestatic final HttpResponseStatus
505 HTTP Version Not Supportedstatic final HttpResponseStatus
226 IM Usedstatic final HttpResponseStatus
507 Insufficient Storagestatic final HttpResponseStatus
500 Internal Server Errorstatic final HttpResponseStatus
411 Length Requiredstatic final HttpResponseStatus
423 Lockedstatic final HttpResponseStatus
508 Loop Detectedstatic final HttpResponseStatus
405 Method Not Allowedstatic final HttpResponseStatus
421 Misdirected Requeststatic final HttpResponseStatus
301 Moved Permanentlystatic final HttpResponseStatus
207 Multi-Statusstatic final HttpResponseStatus
300 Multiple Choicesstatic final HttpResponseStatus
511 Network Authentication Requiredstatic final HttpResponseStatus
204 No Contentstatic final HttpResponseStatus
203 Non-Authoritative Information (since HTTP/1.1)static final HttpResponseStatus
406 Not Acceptablestatic final HttpResponseStatus
510 Not Extendedstatic final HttpResponseStatus
404 Not Foundstatic final HttpResponseStatus
501 Not Implementedstatic final HttpResponseStatus
304 Not Modifiedstatic final HttpResponseStatus
200 OKstatic final HttpResponseStatus
206 Partial Contentstatic final HttpResponseStatus
413 Payload Too Largestatic final HttpResponseStatus
402 Payment Requiredstatic final HttpResponseStatus
308 Permanent Redirectstatic final HttpResponseStatus
412 Precondition Failedstatic final HttpResponseStatus
428 Precondition Requiredstatic final HttpResponseStatus
102 Processingstatic final HttpResponseStatus
407 Proxy Authentication Requiredstatic final HttpResponseStatus
416 Range Not Satisfiablestatic final HttpResponseStatus
431 Request Header Fields Too Largestatic final HttpResponseStatus
408 Request Timeoutstatic final HttpResponseStatus
205 Reset Contentstatic final HttpResponseStatus
303 See Other (since HTTP/1.1)static final HttpResponseStatus
503 Service Unavailablestatic final HttpResponseStatus
101 Switching Protocolsstatic final HttpResponseStatus
307 Temporary Redirect (since HTTP/1.1)static final HttpResponseStatus
425 Too Earlystatic final HttpResponseStatus
429 Too Many Requestsstatic final HttpResponseStatus
401 Unauthorizedstatic final HttpResponseStatus
451 Unavailable For Legal Reasonsstatic final HttpResponseStatus
422 Unprocessable Entitystatic final HttpResponseStatus
415 Unsupported Media Typestatic final HttpResponseStatus
426 Upgrade Requiredstatic final HttpResponseStatus
414 URI Too Longstatic final HttpResponseStatus
305 Use Proxy (since HTTP/1.1)static final HttpResponseStatus
506 Variant Also Negotiates -
Method Summary
Modifier and TypeMethodDescriptionint
code()
Get the three digit status-code indicating status of the response.Get thecode()
as aCharSequence
.boolean
int
hashCode()
static HttpResponseStatus
static HttpResponseStatus
of
(CharSequence statusCode) Convert fromCharSequence
toHttpResponseStatus
.Get the reason-phrase that provides a textual description associated with the numeric status code.Get theHttpResponseStatus.StatusClass
for thisHttpResponseStatus
.toString()
void
Write the equivalent of thisHttpResponseStatus
to aBuffer
.
-
Field Details
-
CONTINUE
100 Continue- See Also:
-
SWITCHING_PROTOCOLS
101 Switching Protocols- See Also:
-
PROCESSING
102 Processing- See Also:
-
EARLY_HINTS
103 Early Hints- See Also:
-
OK
200 OK- See Also:
-
CREATED
201 Created- See Also:
-
ACCEPTED
202 Accepted- See Also:
-
NON_AUTHORITATIVE_INFORMATION
203 Non-Authoritative Information (since HTTP/1.1)- See Also:
-
NO_CONTENT
204 No Content- See Also:
-
RESET_CONTENT
205 Reset Content- See Also:
-
PARTIAL_CONTENT
206 Partial Content- See Also:
-
MULTI_STATUS
207 Multi-Status- See Also:
-
ALREADY_REPORTED
208 Already Reported- See Also:
-
IM_USED
226 IM Used- See Also:
-
MULTIPLE_CHOICES
300 Multiple Choices- See Also:
-
MOVED_PERMANENTLY
301 Moved Permanently- See Also:
-
FOUND
302 Found- See Also:
-
SEE_OTHER
303 See Other (since HTTP/1.1)- See Also:
-
NOT_MODIFIED
304 Not Modified- See Also:
-
USE_PROXY
305 Use Proxy (since HTTP/1.1)- See Also:
-
TEMPORARY_REDIRECT
307 Temporary Redirect (since HTTP/1.1)- See Also:
-
PERMANENT_REDIRECT
308 Permanent Redirect- See Also:
-
BAD_REQUEST
400 Bad Request- See Also:
-
UNAUTHORIZED
401 Unauthorized- See Also:
-
PAYMENT_REQUIRED
402 Payment Required- See Also:
-
FORBIDDEN
403 Forbidden- See Also:
-
NOT_FOUND
404 Not Found- See Also:
-
METHOD_NOT_ALLOWED
405 Method Not Allowed- See Also:
-
NOT_ACCEPTABLE
406 Not Acceptable- See Also:
-
PROXY_AUTHENTICATION_REQUIRED
407 Proxy Authentication Required- See Also:
-
REQUEST_TIMEOUT
408 Request Timeout- See Also:
-
CONFLICT
409 Conflict- See Also:
-
GONE
410 Gone- See Also:
-
LENGTH_REQUIRED
411 Length Required- See Also:
-
PRECONDITION_FAILED
412 Precondition Failed- See Also:
-
PAYLOAD_TOO_LARGE
413 Payload Too Large- See Also:
-
URI_TOO_LONG
414 URI Too Long- See Also:
-
UNSUPPORTED_MEDIA_TYPE
415 Unsupported Media Type- See Also:
-
RANGE_NOT_SATISFIABLE
416 Range Not Satisfiable- See Also:
-
EXPECTATION_FAILED
417 Expectation Failed- See Also:
-
MISDIRECTED_REQUEST
421 Misdirected Request- See Also:
-
UNPROCESSABLE_ENTITY
422 Unprocessable Entity- See Also:
-
LOCKED
423 Locked- See Also:
-
FAILED_DEPENDENCY
424 Failed Dependency- See Also:
-
TOO_EARLY
425 Too Early- See Also:
-
UPGRADE_REQUIRED
426 Upgrade Required- See Also:
-
PRECONDITION_REQUIRED
428 Precondition Required- See Also:
-
TOO_MANY_REQUESTS
429 Too Many Requests- See Also:
-
REQUEST_HEADER_FIELDS_TOO_LARGE
431 Request Header Fields Too Large- See Also:
-
UNAVAILABLE_FOR_LEGAL_REASONS
451 Unavailable For Legal Reasons- See Also:
-
INTERNAL_SERVER_ERROR
500 Internal Server Error- See Also:
-
NOT_IMPLEMENTED
501 Not Implemented- See Also:
-
BAD_GATEWAY
502 Bad Gateway- See Also:
-
SERVICE_UNAVAILABLE
503 Service Unavailable- See Also:
-
GATEWAY_TIMEOUT
504 Gateway Timeout- See Also:
-
HTTP_VERSION_NOT_SUPPORTED
505 HTTP Version Not Supported- See Also:
-
VARIANT_ALSO_NEGOTIATES
506 Variant Also Negotiates- See Also:
-
INSUFFICIENT_STORAGE
507 Insufficient Storage- See Also:
-
LOOP_DETECTED
508 Loop Detected- See Also:
-
NOT_EXTENDED
510 Not Extended- See Also:
-
NETWORK_AUTHENTICATION_REQUIRED
511 Network Authentication Required- See Also:
-
-
Method Details
-
of
Returns anHttpResponseStatus
for the specifiedstatusCode
andreasonPhrase
. Generally, the constants inHttpResponseStatus
should be used.- Parameters:
statusCode
- the three digit status-code indicating status of the responsereasonPhrase
- the reason-phrase portion of the response- Returns:
- an
HttpResponseStatus
-
of
Convert fromCharSequence
toHttpResponseStatus
.- Parameters:
statusCode
- TheCharSequence
to convert, this is expected to be an integer value.- Returns:
- a
HttpResponseStatus
representation ofstatusCode
.
-
code
public int code()Get the three digit status-code indicating status of the response.- Returns:
- the three digit status-code indicating status of the response
-
codeAsCharSequence
Get thecode()
as aCharSequence
.- Returns:
- the
code()
as aCharSequence
.
-
reasonPhrase
Get the reason-phrase that provides a textual description associated with the numeric status code.- Returns:
- the reason-phrase that provides a textual description associated with the numeric status code
-
writeTo
Write the equivalent of thisHttpResponseStatus
to aBuffer
.- Parameters:
buffer
- TheBuffer
to write to
-
statusClass
Get theHttpResponseStatus.StatusClass
for thisHttpResponseStatus
.- Returns:
- the
HttpResponseStatus.StatusClass
for thisHttpResponseStatus
-
toString
-
equals
-
hashCode
public int hashCode()
-