java.lang.Object
io.helidon.http.Status
Commonly used status codes defined by HTTP, see
HTTP/1.1 documentation.
Additional status codes can be added by applications
by call
create(int)
or create(int, String)
with unknown status code, or with text
that differs from the predefined status codes.
Although the constants are instances of this class, they can be compared using instance equality, as the only
way to obtain an instance is through methods create(int)
create(int, String)
, which ensures
the same instance is returned for known status codes and reason phrases.
A good reference is the IANA list of HTTP Status Codes (we may not cover all of them in this type): IANA HTTP Status Codes
For each status, there is also a constant with the status code (int), to allow usage in annotations.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
An enumeration representing the class of status code. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Status
202 Accepted, see HTTP/1.1 documentation.static final int
202 Accepted, see HTTP/1.1 documentation.static final Status
502 Bad Gateway, see HTTP/1.1 documentation.static final int
502 Bad Gateway, see HTTP/1.1 documentation.static final Status
400 Bad Request, see HTTP/1.1 documentation.static final int
400 Bad Request, see HTTP/1.1 documentation.static final Status
409 Conflict, see HTTP/1.1 documentation.static final int
409 Conflict, see HTTP/1.1 documentation.static final Status
100 Continue, see HTTP/1.1 documentations.static final int
100 Continue, see HTTP/1.1 documentations.static final Status
201 Created, see HTTP/1.1 documentation.static final int
201 Created, see HTTP/1.1 documentation.static final Status
417 Expectation Failed, see HTTP/1.1 documentation.static final int
417 Expectation Failed, see HTTP/1.1 documentation.static final Status
Failed dependency, see RFC 4918 - HTTP Extensions for WebDAV.static final int
Failed dependency, see RFC 4918 - HTTP Extensions for WebDAV.static final Status
403 Forbidden, see HTTP/1.1 documentation.static final int
403 Forbidden, see HTTP/1.1 documentation.static final Status
302 Found, see HTTP/1.1 documentation.static final int
302 Found, see HTTP/1.1 documentation.static final Status
504 Gateway Timeout, see HTTP/1.1 documentation.static final int
504 Gateway Timeout, see HTTP/1.1 documentation.static final Status
410 Gone, see HTTP/1.1 documentation.static final int
410 Gone, see HTTP/1.1 documentation.static final Status
505 HTTP Version Not Supported, see HTTP/1.1 documentation.static final int
505 HTTP Version Not Supported, see HTTP/1.1 documentation.static final Status
418 I'm a teapot, see Hyper Text Coffee Pot Control Protocol (HTCPCP/1.0).static final int
418 I'm a teapot, see Hyper Text Coffee Pot Control Protocol (HTCPCP/1.0).static final Status
507 Insufficient Storage, see WebDAV documentation.static final int
507 Insufficient Storage, see WebDAV documentation.static final Status
500 Internal Server Error, see HTTP/1.1 documentation.static final int
500 Internal Server Error, see HTTP/1.1 documentation.static final Status
411 Length Required, see HTTP/1.1 documentation.static final int
411 Length Required, see HTTP/1.1 documentation.static final Status
Locked, see RFC 4918 - HTTP Extensions for WebDAV.static final int
Locked, see RFC 4918 - HTTP Extensions for WebDAV.static final Status
508 Loop Detected, see RFC 5842 - Bindings for the Constrained Application Protocol (CoAP).static final int
508 Loop Detected, see RFC 5842 - Bindings for the Constrained Application Protocol (CoAP).static final Status
405 Method Not Allowed, see HTTP/1.1 documentation.static final int
405 Method Not Allowed, see HTTP/1.1 documentation.static final Status
Misdirected request, see RFC 9110 - Http Semantics.static final int
Misdirected request, see RFC 9110 - Http Semantics.static final Status
301 Moved Permanently, see HTTP/1.1 documentation.static final int
301 Moved Permanently, see HTTP/1.1 documentation.static final Status
207 Multi-Status, see RFC 4918 - HTTP Extensions for WebDAV.static final int
207 Multi-Status, see RFC 4918 - HTTP Extensions for WebDAV.static final Status
511 Network Authentication Required, see RFC 6585 - Additional HTTP Status Codes.static final int
511 Network Authentication Required, see RFC 6585 - Additional HTTP Status Codes.static final Status
204 No Content, see HTTP/1.1 documentation.static final int
204 No Content, see HTTP/1.1 documentation.static final Status
203 Non-Authoritative Information, see HTTP/1.1 documentation.static final int
203 Non-Authoritative Information, see HTTP/1.1 documentation.static final Status
406 Not Acceptable, see HTTP/1.1 documentation.static final int
406 Not Acceptable, see HTTP/1.1 documentation.static final Status
510 Not Extended, see RFC 2774 - An HTTP Extension Framework.static final int
510 Not Extended, see RFC 2774 - An HTTP Extension Framework.static final Status
404 Not Found, see HTTP/1.1 documentation.static final int
404 Not Found, see HTTP/1.1 documentation.static final Status
501 Not Implemented, see HTTP/1.1 documentation.static final int
501 Not Implemented, see HTTP/1.1 documentation.static final Status
304 Not Modified, see HTTP/1.1 documentation.static final int
304 Not Modified, see HTTP/1.1 documentation.static final Status
200 OK, see HTTP/1.1 documentation.static final int
200 OK, see HTTP/1.1 documentation.static final Status
206 Reset Content, see HTTP/1.1 documentation.static final int
206 Reset Content, see HTTP/1.1 documentation.static final Status
402 Payment Required, see HTTP/1.1 documentation.static final int
402 Payment Required, see HTTP/1.1 documentation.static final Status
308 Permanent Redirect, see HTTP Status Code 308 documentation.static final int
308 Permanent Redirect, see HTTP Status Code 308 documentation.static final Status
412 Precondition Failed, see HTTP/1.1 documentation.static final int
412 Precondition Failed, see HTTP/1.1 documentation.static final Status
Precondition required, see RFC 6585 - Additional HTTP Status Codes.static final int
Precondition required, see RFC 6585 - Additional HTTP Status Codes.static final Status
407 Proxy Authentication Required, see HTTP/1.1 documentation.static final int
407 Proxy Authentication Required, see HTTP/1.1 documentation.static final Status
413 Request Entity Too Large, see HTTP/1.1 documentation.static final int
413 Request Entity Too Large, see HTTP/1.1 documentation.static final Status
408 Request Timeout, see HTTP/1.1 documentation.static final int
408 Request Timeout, see HTTP/1.1 documentation.static final Status
414 Request-URI Too Long, see HTTP/1.1 documentation.static final int
414 Request-URI Too Long, see HTTP/1.1 documentation.static final Status
416 Requested Range Not Satisfiable, see HTTP/1.1 documentation.static final int
416 Requested Range Not Satisfiable, see HTTP/1.1 documentation.static final Status
205 Reset Content, see HTTP/1.1 documentation.static final int
205 Reset Content, see HTTP/1.1 documentation.static final Status
303 See Other, see HTTP/1.1 documentation.static final int
303 See Other, see HTTP/1.1 documentation.static final Status
503 Service Unavailable, see HTTP/1.1 documentation.static final int
503 Service Unavailable, see HTTP/1.1 documentation.static final Status
101 Switching Protocols, see HTTP/1.1 documentations.static final int
101 Switching Protocols, see HTTP/1.1 documentations.static final Status
307 Temporary Redirect, see HTTP/1.1 documentation.static final int
307 Temporary Redirect, see HTTP/1.1 documentation.static final Status
Too many requests, see RFC 6585 - Additional HTTP Status Codes.static final int
Too many requests, see RFC 6585 - Additional HTTP Status Codes.static final Status
401 Unauthorized, see HTTP/1.1 documentation.static final int
401 Unauthorized, see HTTP/1.1 documentation.static final Status
Unprocessable content, see RFC 9110 - Http Semantics.static final int
Unprocessable content, see RFC 9110 - Http Semantics.static final Status
415 Unsupported Media Type, see HTTP/1.1 documentation.static final int
415 Unsupported Media Type, see HTTP/1.1 documentation.static final Status
Upgrade required, see RFC 9110 - Http Semantics.static final int
Upgrade required, see RFC 9110 - Http Semantics.static final Status
305 Use Proxy, see HTTP/1.1 documentation.static final int
305 Use Proxy, see HTTP/1.1 documentation. -
Method Summary
Modifier and TypeMethodDescriptionint
code()
Get the associated integer value representing the status code.codeText()
Text of thecode()
.static Status
create
(int statusCode) Convert a numerical status code into the corresponding Status.static Status
Convert a numerical status code into the corresponding Status.boolean
family()
Get the class of status code.int
hashCode()
Get the reason phrase.text()
Text of the status as used in HTTP/1, such as "200 OK".toString()
Get the response status as string.
-
Field Details
-
CONTINUE_100_CODE
public static final int CONTINUE_100_CODE100 Continue, see HTTP/1.1 documentations.- See Also:
-
CONTINUE_100
100 Continue, see HTTP/1.1 documentations. -
SWITCHING_PROTOCOLS_101_CODE
public static final int SWITCHING_PROTOCOLS_101_CODE101 Switching Protocols, see HTTP/1.1 documentations.- See Also:
-
SWITCHING_PROTOCOLS_101
101 Switching Protocols, see HTTP/1.1 documentations. -
OK_200_CODE
public static final int OK_200_CODE200 OK, see HTTP/1.1 documentation.- See Also:
-
OK_200
200 OK, see HTTP/1.1 documentation. -
CREATED_201_CODE
public static final int CREATED_201_CODE201 Created, see HTTP/1.1 documentation.- See Also:
-
CREATED_201
201 Created, see HTTP/1.1 documentation. -
ACCEPTED_202_CODE
public static final int ACCEPTED_202_CODE202 Accepted, see HTTP/1.1 documentation.- See Also:
-
ACCEPTED_202
202 Accepted, see HTTP/1.1 documentation. -
NON_AUTHORITATIVE_INFORMATION_203_CODE
public static final int NON_AUTHORITATIVE_INFORMATION_203_CODE203 Non-Authoritative Information, see HTTP/1.1 documentation.- Since:
- 4.0.6
- See Also:
-
NON_AUTHORITATIVE_INFORMATION_203
203 Non-Authoritative Information, see HTTP/1.1 documentation.- Since:
- 4.0.6
-
NO_CONTENT_204_CODE
public static final int NO_CONTENT_204_CODE204 No Content, see HTTP/1.1 documentation.- See Also:
-
NO_CONTENT_204
204 No Content, see HTTP/1.1 documentation. -
RESET_CONTENT_205_CODE
public static final int RESET_CONTENT_205_CODE205 Reset Content, see HTTP/1.1 documentation.- Since:
- 2.0
- See Also:
-
RESET_CONTENT_205
205 Reset Content, see HTTP/1.1 documentation.- Since:
- 2.0
-
PARTIAL_CONTENT_206_CODE
public static final int PARTIAL_CONTENT_206_CODE206 Reset Content, see HTTP/1.1 documentation.- Since:
- 2.0
- See Also:
-
PARTIAL_CONTENT_206
206 Reset Content, see HTTP/1.1 documentation.- Since:
- 2.0
-
MULTI_STATUS_207_CODE
public static final int MULTI_STATUS_207_CODE207 Multi-Status, see RFC 4918 - HTTP Extensions for WebDAV.- Since:
- 4.0.6
- See Also:
-
MULTI_STATUS_207
207 Multi-Status, see RFC 4918 - HTTP Extensions for WebDAV.- Since:
- 4.0.6
-
MOVED_PERMANENTLY_301_CODE
public static final int MOVED_PERMANENTLY_301_CODE301 Moved Permanently, see HTTP/1.1 documentation.- See Also:
-
MOVED_PERMANENTLY_301
301 Moved Permanently, see HTTP/1.1 documentation. -
FOUND_302_CODE
public static final int FOUND_302_CODE302 Found, see HTTP/1.1 documentation.- Since:
- 2.0
- See Also:
-
FOUND_302
302 Found, see HTTP/1.1 documentation.- Since:
- 2.0
-
SEE_OTHER_303_CODE
public static final int SEE_OTHER_303_CODE303 See Other, see HTTP/1.1 documentation.- See Also:
-
SEE_OTHER_303
303 See Other, see HTTP/1.1 documentation. -
NOT_MODIFIED_304_CODE
public static final int NOT_MODIFIED_304_CODE304 Not Modified, see HTTP/1.1 documentation.- See Also:
-
NOT_MODIFIED_304
304 Not Modified, see HTTP/1.1 documentation. -
USE_PROXY_305_CODE
public static final int USE_PROXY_305_CODE305 Use Proxy, see HTTP/1.1 documentation.- Since:
- 2.0
- See Also:
-
USE_PROXY_305
305 Use Proxy, see HTTP/1.1 documentation.- Since:
- 2.0
-
TEMPORARY_REDIRECT_307_CODE
public static final int TEMPORARY_REDIRECT_307_CODE307 Temporary Redirect, see HTTP/1.1 documentation.- See Also:
-
TEMPORARY_REDIRECT_307
307 Temporary Redirect, see HTTP/1.1 documentation. -
PERMANENT_REDIRECT_308_CODE
public static final int PERMANENT_REDIRECT_308_CODE308 Permanent Redirect, see HTTP Status Code 308 documentation.- See Also:
-
PERMANENT_REDIRECT_308
308 Permanent Redirect, see HTTP Status Code 308 documentation. -
BAD_REQUEST_400_CODE
public static final int BAD_REQUEST_400_CODE400 Bad Request, see HTTP/1.1 documentation.- See Also:
-
BAD_REQUEST_400
400 Bad Request, see HTTP/1.1 documentation. -
UNAUTHORIZED_401_CODE
public static final int UNAUTHORIZED_401_CODE401 Unauthorized, see HTTP/1.1 documentation.- See Also:
-
UNAUTHORIZED_401
401 Unauthorized, see HTTP/1.1 documentation. -
PAYMENT_REQUIRED_402_CODE
public static final int PAYMENT_REQUIRED_402_CODE402 Payment Required, see HTTP/1.1 documentation.- Since:
- 2.0
- See Also:
-
PAYMENT_REQUIRED_402
402 Payment Required, see HTTP/1.1 documentation.- Since:
- 2.0
-
FORBIDDEN_403_CODE
public static final int FORBIDDEN_403_CODE403 Forbidden, see HTTP/1.1 documentation.- See Also:
-
FORBIDDEN_403
403 Forbidden, see HTTP/1.1 documentation. -
NOT_FOUND_404_CODE
public static final int NOT_FOUND_404_CODE404 Not Found, see HTTP/1.1 documentation.- See Also:
-
NOT_FOUND_404
404 Not Found, see HTTP/1.1 documentation. -
METHOD_NOT_ALLOWED_405_CODE
public static final int METHOD_NOT_ALLOWED_405_CODE405 Method Not Allowed, see HTTP/1.1 documentation.- Since:
- 2.0
- See Also:
-
METHOD_NOT_ALLOWED_405
405 Method Not Allowed, see HTTP/1.1 documentation.- Since:
- 2.0
-
NOT_ACCEPTABLE_406_CODE
public static final int NOT_ACCEPTABLE_406_CODE406 Not Acceptable, see HTTP/1.1 documentation.- See Also:
-
NOT_ACCEPTABLE_406
406 Not Acceptable, see HTTP/1.1 documentation. -
PROXY_AUTHENTICATION_REQUIRED_407_CODE
public static final int PROXY_AUTHENTICATION_REQUIRED_407_CODE407 Proxy Authentication Required, see HTTP/1.1 documentation.- Since:
- 2.0
- See Also:
-
PROXY_AUTHENTICATION_REQUIRED_407
407 Proxy Authentication Required, see HTTP/1.1 documentation.- Since:
- 2.0
-
REQUEST_TIMEOUT_408_CODE
public static final int REQUEST_TIMEOUT_408_CODE408 Request Timeout, see HTTP/1.1 documentation.- Since:
- 2.0
- See Also:
-
REQUEST_TIMEOUT_408
408 Request Timeout, see HTTP/1.1 documentation.- Since:
- 2.0
-
CONFLICT_409_CODE
public static final int CONFLICT_409_CODE409 Conflict, see HTTP/1.1 documentation.- See Also:
-
CONFLICT_409
409 Conflict, see HTTP/1.1 documentation. -
GONE_410_CODE
public static final int GONE_410_CODE410 Gone, see HTTP/1.1 documentation.- See Also:
-
GONE_410
410 Gone, see HTTP/1.1 documentation. -
LENGTH_REQUIRED_411_CODE
public static final int LENGTH_REQUIRED_411_CODE411 Length Required, see HTTP/1.1 documentation.- Since:
- 2.0
- See Also:
-
LENGTH_REQUIRED_411
411 Length Required, see HTTP/1.1 documentation.- Since:
- 2.0
-
PRECONDITION_FAILED_412_CODE
public static final int PRECONDITION_FAILED_412_CODE412 Precondition Failed, see HTTP/1.1 documentation.- See Also:
-
PRECONDITION_FAILED_412
412 Precondition Failed, see HTTP/1.1 documentation. -
REQUEST_ENTITY_TOO_LARGE_413_CODE
public static final int REQUEST_ENTITY_TOO_LARGE_413_CODE413 Request Entity Too Large, see HTTP/1.1 documentation.- Since:
- 2.0
- See Also:
-
REQUEST_ENTITY_TOO_LARGE_413
413 Request Entity Too Large, see HTTP/1.1 documentation.- Since:
- 2.0
-
REQUEST_URI_TOO_LONG_414_CODE
public static final int REQUEST_URI_TOO_LONG_414_CODE414 Request-URI Too Long, see HTTP/1.1 documentation.- Since:
- 2.0
- See Also:
-
REQUEST_URI_TOO_LONG_414
414 Request-URI Too Long, see HTTP/1.1 documentation.- Since:
- 2.0
-
UNSUPPORTED_MEDIA_TYPE_415_CODE
public static final int UNSUPPORTED_MEDIA_TYPE_415_CODE415 Unsupported Media Type, see HTTP/1.1 documentation.- See Also:
-
UNSUPPORTED_MEDIA_TYPE_415
415 Unsupported Media Type, see HTTP/1.1 documentation. -
REQUESTED_RANGE_NOT_SATISFIABLE_416_CODE
public static final int REQUESTED_RANGE_NOT_SATISFIABLE_416_CODE416 Requested Range Not Satisfiable, see HTTP/1.1 documentation.- Since:
- 2.0
- See Also:
-
REQUESTED_RANGE_NOT_SATISFIABLE_416
416 Requested Range Not Satisfiable, see HTTP/1.1 documentation.- Since:
- 2.0
-
EXPECTATION_FAILED_417_CODE
public static final int EXPECTATION_FAILED_417_CODE417 Expectation Failed, see HTTP/1.1 documentation.- Since:
- 2.0
- See Also:
-
EXPECTATION_FAILED_417
417 Expectation Failed, see HTTP/1.1 documentation.- Since:
- 2.0
-
I_AM_A_TEAPOT_418_CODE
public static final int I_AM_A_TEAPOT_418_CODE418 I'm a teapot, see Hyper Text Coffee Pot Control Protocol (HTCPCP/1.0).- See Also:
-
I_AM_A_TEAPOT_418
418 I'm a teapot, see Hyper Text Coffee Pot Control Protocol (HTCPCP/1.0). -
MISDIRECTED_REQUEST_421_CODE
public static final int MISDIRECTED_REQUEST_421_CODEMisdirected request, see RFC 9110 - Http Semantics.- See Also:
-
MISDIRECTED_REQUEST_421
Misdirected request, see RFC 9110 - Http Semantics. -
UNPROCESSABLE_CONTENT_422_CODE
public static final int UNPROCESSABLE_CONTENT_422_CODEUnprocessable content, see RFC 9110 - Http Semantics.- See Also:
-
UNPROCESSABLE_CONTENT_422
Unprocessable content, see RFC 9110 - Http Semantics. -
LOCKED_423_CODE
public static final int LOCKED_423_CODELocked, see RFC 4918 - HTTP Extensions for WebDAV.- See Also:
-
LOCKED_423
Locked, see RFC 4918 - HTTP Extensions for WebDAV. -
FAILED_DEPENDENCY_424_CODE
public static final int FAILED_DEPENDENCY_424_CODEFailed dependency, see RFC 4918 - HTTP Extensions for WebDAV.- See Also:
-
FAILED_DEPENDENCY_424
Failed dependency, see RFC 4918 - HTTP Extensions for WebDAV. -
UPGRADE_REQUIRED_426_CODE
public static final int UPGRADE_REQUIRED_426_CODEUpgrade required, see RFC 9110 - Http Semantics.- See Also:
-
UPGRADE_REQUIRED_426
Upgrade required, see RFC 9110 - Http Semantics. -
PRECONDITION_REQUIRED_428_CODE
public static final int PRECONDITION_REQUIRED_428_CODEPrecondition required, see RFC 6585 - Additional HTTP Status Codes.- See Also:
-
PRECONDITION_REQUIRED_428
Precondition required, see RFC 6585 - Additional HTTP Status Codes. -
TOO_MANY_REQUESTS_429_CODE
public static final int TOO_MANY_REQUESTS_429_CODEToo many requests, see RFC 6585 - Additional HTTP Status Codes.- See Also:
-
TOO_MANY_REQUESTS_429
Too many requests, see RFC 6585 - Additional HTTP Status Codes. -
INTERNAL_SERVER_ERROR_500_CODE
public static final int INTERNAL_SERVER_ERROR_500_CODE500 Internal Server Error, see HTTP/1.1 documentation.- See Also:
-
INTERNAL_SERVER_ERROR_500
500 Internal Server Error, see HTTP/1.1 documentation. -
NOT_IMPLEMENTED_501_CODE
public static final int NOT_IMPLEMENTED_501_CODE501 Not Implemented, see HTTP/1.1 documentation.- Since:
- 2.0
- See Also:
-
NOT_IMPLEMENTED_501
501 Not Implemented, see HTTP/1.1 documentation.- Since:
- 2.0
-
BAD_GATEWAY_502_CODE
public static final int BAD_GATEWAY_502_CODE502 Bad Gateway, see HTTP/1.1 documentation.- Since:
- 2.0
- See Also:
-
BAD_GATEWAY_502
502 Bad Gateway, see HTTP/1.1 documentation.- Since:
- 2.0
-
SERVICE_UNAVAILABLE_503_CODE
public static final int SERVICE_UNAVAILABLE_503_CODE503 Service Unavailable, see HTTP/1.1 documentation.- See Also:
-
SERVICE_UNAVAILABLE_503
503 Service Unavailable, see HTTP/1.1 documentation. -
GATEWAY_TIMEOUT_504_CODE
public static final int GATEWAY_TIMEOUT_504_CODE504 Gateway Timeout, see HTTP/1.1 documentation.- Since:
- 2.0
- See Also:
-
GATEWAY_TIMEOUT_504
504 Gateway Timeout, see HTTP/1.1 documentation.- Since:
- 2.0
-
HTTP_VERSION_NOT_SUPPORTED_505_CODE
public static final int HTTP_VERSION_NOT_SUPPORTED_505_CODE505 HTTP Version Not Supported, see HTTP/1.1 documentation.- Since:
- 3.0.3
- See Also:
-
HTTP_VERSION_NOT_SUPPORTED_505
505 HTTP Version Not Supported, see HTTP/1.1 documentation.- Since:
- 3.0.3
-
INSUFFICIENT_STORAGE_507_CODE
public static final int INSUFFICIENT_STORAGE_507_CODE507 Insufficient Storage, see WebDAV documentation.- Since:
- 4.0.6
- See Also:
-
INSUFFICIENT_STORAGE_507
507 Insufficient Storage, see WebDAV documentation.- Since:
- 4.0.6
-
LOOP_DETECTED_508_CODE
public static final int LOOP_DETECTED_508_CODE508 Loop Detected, see RFC 5842 - Bindings for the Constrained Application Protocol (CoAP).- Since:
- 4.0.6
- See Also:
-
LOOP_DETECTED_508
508 Loop Detected, see RFC 5842 - Bindings for the Constrained Application Protocol (CoAP).- Since:
- 4.0.6
-
NOT_EXTENDED_510_CODE
public static final int NOT_EXTENDED_510_CODE510 Not Extended, see RFC 2774 - An HTTP Extension Framework.- Since:
- 4.0.6
- See Also:
-
NOT_EXTENDED_510
510 Not Extended, see RFC 2774 - An HTTP Extension Framework.- Since:
- 4.0.6
-
NETWORK_AUTHENTICATION_REQUIRED_511_CODE
public static final int NETWORK_AUTHENTICATION_REQUIRED_511_CODE511 Network Authentication Required, see RFC 6585 - Additional HTTP Status Codes.- Since:
- 4.0.6
- See Also:
-
NETWORK_AUTHENTICATION_REQUIRED_511
511 Network Authentication Required, see RFC 6585 - Additional HTTP Status Codes.- Since:
- 4.0.6
-
-
Method Details
-
create
Convert a numerical status code into the corresponding Status.For an unknown code, an ad-hoc
Status
is created.- Parameters:
statusCode
- the numerical status code- Returns:
- the matching Status; either a constant from this class, or an ad-hoc
Status
-
create
Convert a numerical status code into the corresponding Status.It either returns an existing
Status
constant if possible. For an unknown code, or code/reason phrase combination it creates an ad-hocStatus
.- Parameters:
statusCode
- the numerical status codereasonPhrase
- the reason phrase; ifnull
or a known reason phrase, an instance with the default phrase is returned; otherwise, a new instance is returned- Returns:
- the matching Status
-
code
public int code()Get the associated integer value representing the status code.- Returns:
- the integer value representing the status code.
-
family
Get the class of status code.- Returns:
- the class of status code.
-
reasonPhrase
Get the reason phrase.- Returns:
- the reason phrase.
-
codeText
Text of thecode()
.- Returns:
- code string (number as a string)
-
toString
Get the response status as string. -
text
Text of the status as used in HTTP/1, such as "200 OK".- Returns:
- text of this status
-
equals
-
hashCode
public int hashCode()
-