Package io.servicetalk.http.api
Class HttpResponseStatus
java.lang.Object
io.servicetalk.http.api.HttpResponseStatus
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HttpResponseStatus202 Acceptedstatic final HttpResponseStatus208 Already Reportedstatic final HttpResponseStatus502 Bad Gatewaystatic final HttpResponseStatus400 Bad Requeststatic final HttpResponseStatus409 Conflictstatic final HttpResponseStatus100 Continuestatic final HttpResponseStatus201 Createdstatic final HttpResponseStatus103 Early Hintsstatic final HttpResponseStatus417 Expectation Failedstatic final HttpResponseStatus424 Failed Dependencystatic final HttpResponseStatus403 Forbiddenstatic final HttpResponseStatus302 Foundstatic final HttpResponseStatus504 Gateway Timeoutstatic final HttpResponseStatus410 Gonestatic final HttpResponseStatus505 HTTP Version Not Supportedstatic final HttpResponseStatus226 IM Usedstatic final HttpResponseStatus507 Insufficient Storagestatic final HttpResponseStatus500 Internal Server Errorstatic final HttpResponseStatus411 Length Requiredstatic final HttpResponseStatus423 Lockedstatic final HttpResponseStatus508 Loop Detectedstatic final HttpResponseStatus405 Method Not Allowedstatic final HttpResponseStatus421 Misdirected Requeststatic final HttpResponseStatus301 Moved Permanentlystatic final HttpResponseStatus207 Multi-Statusstatic final HttpResponseStatus300 Multiple Choicesstatic final HttpResponseStatus511 Network Authentication Requiredstatic final HttpResponseStatus204 No Contentstatic final HttpResponseStatus203 Non-Authoritative Information (since HTTP/1.1)static final HttpResponseStatus406 Not Acceptablestatic final HttpResponseStatus510 Not Extendedstatic final HttpResponseStatus404 Not Foundstatic final HttpResponseStatus501 Not Implementedstatic final HttpResponseStatus304 Not Modifiedstatic final HttpResponseStatus200 OKstatic final HttpResponseStatus206 Partial Contentstatic final HttpResponseStatus413 Payload Too Largestatic final HttpResponseStatus402 Payment Requiredstatic final HttpResponseStatus308 Permanent Redirectstatic final HttpResponseStatus412 Precondition Failedstatic final HttpResponseStatus428 Precondition Requiredstatic final HttpResponseStatus102 Processingstatic final HttpResponseStatus407 Proxy Authentication Requiredstatic final HttpResponseStatus416 Range Not Satisfiablestatic final HttpResponseStatus431 Request Header Fields Too Largestatic final HttpResponseStatus408 Request Timeoutstatic final HttpResponseStatus205 Reset Contentstatic final HttpResponseStatus303 See Other (since HTTP/1.1)static final HttpResponseStatus503 Service Unavailablestatic final HttpResponseStatus101 Switching Protocolsstatic final HttpResponseStatus307 Temporary Redirect (since HTTP/1.1)static final HttpResponseStatus425 Too Earlystatic final HttpResponseStatus429 Too Many Requestsstatic final HttpResponseStatus401 Unauthorizedstatic final HttpResponseStatus451 Unavailable For Legal Reasonsstatic final HttpResponseStatus422 Unprocessable Entitystatic final HttpResponseStatus415 Unsupported Media Typestatic final HttpResponseStatus426 Upgrade Requiredstatic final HttpResponseStatus414 URI Too Longstatic final HttpResponseStatus305 Use Proxy (since HTTP/1.1)static final HttpResponseStatus506 Variant Also Negotiates -
Method Summary
Modifier and TypeMethodDescriptionintcode()Get the three digit status-code indicating status of the response.Get thecode()as aCharSequence.booleaninthashCode()static HttpResponseStatusstatic HttpResponseStatusof(CharSequence statusCode) Convert fromCharSequencetoHttpResponseStatus.Get the reason-phrase that provides a textual description associated with the numeric status code.Get theHttpResponseStatus.StatusClassfor thisHttpResponseStatus.toString()voidWrite the equivalent of thisHttpResponseStatusto 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 anHttpResponseStatusfor the specifiedstatusCodeandreasonPhrase. Generally, the constants inHttpResponseStatusshould 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 fromCharSequencetoHttpResponseStatus.- Parameters:
statusCode- TheCharSequenceto convert, this is expected to be an integer value.- Returns:
- a
HttpResponseStatusrepresentation 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 thisHttpResponseStatusto aBuffer.- Parameters:
buffer- TheBufferto write to
-
statusClass
Get theHttpResponseStatus.StatusClassfor thisHttpResponseStatus.- Returns:
- the
HttpResponseStatus.StatusClassfor thisHttpResponseStatus
-
toString
-
equals
-
hashCode
public int hashCode()
-