java.lang.Object
io.jooby.StatusCode
HTTP status codes.
This code has been borrowed from Spring.
- Author:
- Arjen Poutsma
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final StatusCode
202 Accepted
.static final int
202 Accepted
.static final StatusCode
208 Already Reported
.static final int
208 Already Reported
.static final StatusCode
502 Bad Gateway
.static final int
502 Bad Gateway
.static final StatusCode
400 Bad Request
.static final int
400 Bad Request
.static final StatusCode
509 Bandwidth Limit Exceeded
.static final int
509 Bandwidth Limit Exceeded
.static final StatusCode
103 Checkpoint
.static final int
103 Checkpoint
.static final StatusCode
409 Conflict
.static final int
409 Conflict
.static final StatusCode
100 Continue
.static final int
100 Continue
.static final StatusCode
201 Created
.static final int
201 Created
.static final StatusCode
417 Expectation Failed
.static final int
417 Expectation Failed
.static final StatusCode
424 Failed Dependency
.static final int
424 Failed Dependency
.static final StatusCode
403 Forbidden
.static final int
403 Forbidden
.static final StatusCode
302 Found
.static final int
302 Found
.static final StatusCode
504 Gateway Timeout
.static final int
504 Gateway Timeout
.static final StatusCode
410 Gone
.static final int
410 Gone
.static final StatusCode
505 HTTP Version Not Supported
.static final int
505 HTTP Version Not Supported
.static final StatusCode
418 I'm a teapot
.static final int
418 I'm a teapot
.static final StatusCode
226 IM Used
.static final int
226 IM Used
.static final StatusCode
507 Insufficient Storage
.static final int
507 Insufficient Storage
.static final StatusCode
411 Length Required
.static final int
411 Length Required
.static final StatusCode
423 Locked
.static final int
423 Locked
.static final StatusCode
508 Loop Detected
.static final int
508 Loop Detected
.static final StatusCode
405 Method Not Allowed
.static final int
405 Method Not Allowed
.static final StatusCode
301 Moved Permanently
.static final int
301 Moved Permanently
.static final StatusCode
207 Multi-StatusCode
.static final int
207 Multi-StatusCode
.static final StatusCode
300 Multiple Choices
.static final int
300 Multiple Choices
.static final StatusCode
511 Network Authentication Required
.static final int
511 Network Authentication Required
.static final StatusCode
204 No Content
.static final int
204 No Content
.static final StatusCode
203 Non-Authoritative Information
.static final int
203 Non-Authoritative Information
.static final StatusCode
406 Not Acceptable
.static final int
406 Not Acceptable
.static final StatusCode
510 Not Extended
.static final int
510 Not Extended
.static final StatusCode
404 Not Found
.static final int
404 Not Found
.static final StatusCode
501 Not Implemented
.static final int
501 Not Implemented
.static final StatusCode
304 Not Modified
.static final int
304 Not Modified
.static final StatusCode
200 OK
.static final int
200 OK
.static final StatusCode
207 Multi-StatusCode
.static final int
206 Partial Content
.static final StatusCode
402 Payment Required
.static final int
402 Payment Required
.static final StatusCode
412 Precondition failed
.static final int
412 Precondition failed
.static final StatusCode
428 Precondition Required
.static final int
428 Precondition Required
.static final StatusCode
102 Processing
.static final int
102 Processing
.static final StatusCode
407 Proxy Authentication Required
.static final int
407 Proxy Authentication Required
.static final StatusCode
413 Request Entity Too Large
.static final int
413 Request Entity Too Large
.static final StatusCode
431 Request Header Fields Too Large
.static final int
431 Request Header Fields Too Large
.static final StatusCode
408 Request Timeout
.static final int
408 Request Timeout
.static final StatusCode
414 Request-URI Too Long
.static final int
414 Request-URI Too Long
.static final StatusCode
416 Requested Range Not Satisfiable
.static final int
416 Requested Range Not Satisfiable
.static final StatusCode
206 Partial Content
.static final int
205 Reset Content
.static final StatusCode
308 Resume Incomplete
.static final int
308 Resume Incomplete
.static final StatusCode
303 See Other
.static final int
303 See Other
.static final StatusCode
500 Server Error
.static final int
500 Server Error
.static final StatusCode
503 Service Unavailable
.static final int
503 Service Unavailable
.static final StatusCode
101 Switching Protocols
.static final int
101 Switching Protocols
.static final StatusCode
307 Temporary Redirect
.static final int
307 Temporary Redirect
.static final StatusCode
429 Too Many Requests
.static final int
429 Too Many Requests
.static final StatusCode
401 Unauthorized
.static final int
401 Unauthorized
.static final StatusCode
422 Unprocessable Entity
.static final int
422 Unprocessable Entity
.static final StatusCode
415 Unsupported Media Type
.static final int
415 Unsupported Media Type
.static final StatusCode
426 Upgrade Required
.static final int
426 Upgrade Required
.static final StatusCode
305 Use Proxy
.static final int
305 Use Proxy
.static final StatusCode
506 Variant Also Negotiates
.static final int
506 Variant Also Negotiates
. -
Method Summary
-
Field Details
-
CONTINUE_CODE
public static final int CONTINUE_CODE100 Continue
.- See Also:
-
CONTINUE
100 Continue
.- See Also:
-
SWITCHING_PROTOCOLS_CODE
public static final int SWITCHING_PROTOCOLS_CODE101 Switching Protocols
.- See Also:
-
SWITCHING_PROTOCOLS
101 Switching Protocols
.- See Also:
-
PROCESSING_CODE
public static final int PROCESSING_CODE102 Processing
.- See Also:
-
PROCESSING
102 Processing
.- See Also:
-
CHECKPOINT_CODE
public static final int CHECKPOINT_CODE103 Checkpoint
. -
CHECKPOINT
103 Checkpoint
. -
OK_CODE
public static final int OK_CODE200 OK
.- See Also:
-
OK
200 OK
.- See Also:
-
CREATED_CODE
public static final int CREATED_CODE201 Created
.- See Also:
-
CREATED
201 Created
.- See Also:
-
ACCEPTED_CODE
public static final int ACCEPTED_CODE202 Accepted
.- See Also:
-
ACCEPTED
202 Accepted
.- See Also:
-
NON_AUTHORITATIVE_INFORMATION_CODE
public static final int NON_AUTHORITATIVE_INFORMATION_CODE203 Non-Authoritative Information
.- See Also:
-
NON_AUTHORITATIVE_INFORMATION
203 Non-Authoritative Information
.- See Also:
-
NO_CONTENT_CODE
public static final int NO_CONTENT_CODE204 No Content
.- See Also:
-
NO_CONTENT
204 No Content
.- See Also:
-
RESET_CONTENT_CODE
public static final int RESET_CONTENT_CODE205 Reset Content
.- See Also:
-
RESET_CONTENT
206 Partial Content
.- See Also:
-
PARTIAL_CONTENT_CODE
public static final int PARTIAL_CONTENT_CODE206 Partial Content
.- See Also:
-
PARTIAL_CONTENT
207 Multi-StatusCode
.- See Also:
-
MULTI_STATUS_CODE
public static final int MULTI_STATUS_CODE207 Multi-StatusCode
.- See Also:
-
MULTI_STATUS
207 Multi-StatusCode
.- See Also:
-
ALREADY_REPORTED_CODE
public static final int ALREADY_REPORTED_CODE208 Already Reported
. -
ALREADY_REPORTED
208 Already Reported
.- See Also:
-
IM_USED_CODE
public static final int IM_USED_CODE226 IM Used
.- See Also:
-
IM_USED
226 IM Used
.- See Also:
-
MULTIPLE_CHOICES_CODE
public static final int MULTIPLE_CHOICES_CODE300 Multiple Choices
.- See Also:
-
MULTIPLE_CHOICES
300 Multiple Choices
.- See Also:
-
MOVED_PERMANENTLY_CODE
public static final int MOVED_PERMANENTLY_CODE301 Moved Permanently
.- See Also:
-
MOVED_PERMANENTLY
301 Moved Permanently
.- See Also:
-
FOUND_CODE
public static final int FOUND_CODE302 Found
.- See Also:
-
FOUND
302 Found
.- See Also:
-
SEE_OTHER_CODE
public static final int SEE_OTHER_CODE303 See Other
.- See Also:
-
SEE_OTHER
303 See Other
.- See Also:
-
NOT_MODIFIED_CODE
public static final int NOT_MODIFIED_CODE304 Not Modified
.- See Also:
-
NOT_MODIFIED
304 Not Modified
.- See Also:
-
USE_PROXY_CODE
public static final int USE_PROXY_CODE305 Use Proxy
.- See Also:
-
USE_PROXY
305 Use Proxy
.- See Also:
-
TEMPORARY_REDIRECT_CODE
public static final int TEMPORARY_REDIRECT_CODE307 Temporary Redirect
.- See Also:
-
TEMPORARY_REDIRECT
307 Temporary Redirect
.- See Also:
-
RESUME_INCOMPLETE_CODE
public static final int RESUME_INCOMPLETE_CODE308 Resume Incomplete
. -
RESUME_INCOMPLETE
308 Resume Incomplete
. -
BAD_REQUEST_CODE
public static final int BAD_REQUEST_CODE400 Bad Request
.- See Also:
-
BAD_REQUEST
400 Bad Request
.- See Also:
-
UNAUTHORIZED_CODE
public static final int UNAUTHORIZED_CODE401 Unauthorized
.- See Also:
-
UNAUTHORIZED
401 Unauthorized
.- See Also:
-
PAYMENT_REQUIRED_CODE
public static final int PAYMENT_REQUIRED_CODE402 Payment Required
.- See Also:
-
PAYMENT_REQUIRED
402 Payment Required
.- See Also:
-
FORBIDDEN_CODE
public static final int FORBIDDEN_CODE403 Forbidden
.- See Also:
-
FORBIDDEN
403 Forbidden
.- See Also:
-
NOT_FOUND_CODE
public static final int NOT_FOUND_CODE404 Not Found
.- See Also:
-
NOT_FOUND
404 Not Found
.- See Also:
-
METHOD_NOT_ALLOWED_CODE
public static final int METHOD_NOT_ALLOWED_CODE405 Method Not Allowed
.- See Also:
-
METHOD_NOT_ALLOWED
405 Method Not Allowed
.- See Also:
-
NOT_ACCEPTABLE_CODE
public static final int NOT_ACCEPTABLE_CODE406 Not Acceptable
.- See Also:
-
NOT_ACCEPTABLE
406 Not Acceptable
.- See Also:
-
PROXY_AUTHENTICATION_REQUIRED_CODE
public static final int PROXY_AUTHENTICATION_REQUIRED_CODE407 Proxy Authentication Required
.- See Also:
-
PROXY_AUTHENTICATION_REQUIRED
407 Proxy Authentication Required
.- See Also:
-
REQUEST_TIMEOUT_CODE
public static final int REQUEST_TIMEOUT_CODE408 Request Timeout
.- See Also:
-
REQUEST_TIMEOUT
408 Request Timeout
.- See Also:
-
CONFLICT_CODE
public static final int CONFLICT_CODE409 Conflict
.- See Also:
-
CONFLICT
409 Conflict
.- See Also:
-
GONE_CODE
public static final int GONE_CODE410 Gone
.- See Also:
-
GONE
410 Gone
.- See Also:
-
LENGTH_REQUIRED_CODE
public static final int LENGTH_REQUIRED_CODE411 Length Required
.- See Also:
-
LENGTH_REQUIRED
411 Length Required
.- See Also:
-
PRECONDITION_FAILED_CODE
public static final int PRECONDITION_FAILED_CODE412 Precondition failed
.- See Also:
-
PRECONDITION_FAILED
412 Precondition failed
.- See Also:
-
REQUEST_ENTITY_TOO_LARGE_CODE
public static final int REQUEST_ENTITY_TOO_LARGE_CODE413 Request Entity Too Large
.- See Also:
-
REQUEST_ENTITY_TOO_LARGE
413 Request Entity Too Large
.- See Also:
-
REQUEST_URI_TOO_LONG_CODE
public static final int REQUEST_URI_TOO_LONG_CODE414 Request-URI Too Long
.- See Also:
-
REQUEST_URI_TOO_LONG
414 Request-URI Too Long
.- See Also:
-
UNSUPPORTED_MEDIA_TYPE_CODE
public static final int UNSUPPORTED_MEDIA_TYPE_CODE415 Unsupported Media Type
.- See Also:
-
UNSUPPORTED_MEDIA_TYPE
415 Unsupported Media Type
.- See Also:
-
REQUESTED_RANGE_NOT_SATISFIABLE_CODE
public static final int REQUESTED_RANGE_NOT_SATISFIABLE_CODE416 Requested Range Not Satisfiable
.- See Also:
-
REQUESTED_RANGE_NOT_SATISFIABLE
416 Requested Range Not Satisfiable
.- See Also:
-
EXPECTATION_FAILED_CODE
public static final int EXPECTATION_FAILED_CODE417 Expectation Failed
.- See Also:
-
EXPECTATION_FAILED
417 Expectation Failed
.- See Also:
-
I_AM_A_TEAPOT_CODE
public static final int I_AM_A_TEAPOT_CODE418 I'm a teapot
.- See Also:
-
I_AM_A_TEAPOT
418 I'm a teapot
.- See Also:
-
UNPROCESSABLE_ENTITY_CODE
public static final int UNPROCESSABLE_ENTITY_CODE422 Unprocessable Entity
.- See Also:
-
UNPROCESSABLE_ENTITY
422 Unprocessable Entity
.- See Also:
-
LOCKED_CODE
public static final int LOCKED_CODE423 Locked
.- See Also:
-
LOCKED
423 Locked
.- See Also:
-
FAILED_DEPENDENCY_CODE
public static final int FAILED_DEPENDENCY_CODE424 Failed Dependency
.- See Also:
-
FAILED_DEPENDENCY
424 Failed Dependency
.- See Also:
-
UPGRADE_REQUIRED_CODE
public static final int UPGRADE_REQUIRED_CODE426 Upgrade Required
. -
UPGRADE_REQUIRED
426 Upgrade Required
.- See Also:
-
PRECONDITION_REQUIRED_CODE
public static final int PRECONDITION_REQUIRED_CODE428 Precondition Required
. -
PRECONDITION_REQUIRED
428 Precondition Required
.- See Also:
-
TOO_MANY_REQUESTS_CODE
public static final int TOO_MANY_REQUESTS_CODE429 Too Many Requests
. -
TOO_MANY_REQUESTS
429 Too Many Requests
.- See Also:
-
REQUEST_HEADER_FIELDS_TOO_LARGE_CODE
public static final int REQUEST_HEADER_FIELDS_TOO_LARGE_CODE431 Request Header Fields Too Large
. -
REQUEST_HEADER_FIELDS_TOO_LARGE
431 Request Header Fields Too Large
.- See Also:
-
SERVER_ERROR_CODE
public static final int SERVER_ERROR_CODE500 Server Error
.- See Also:
-
SERVER_ERROR
500 Server Error
.- See Also:
-
NOT_IMPLEMENTED_CODE
public static final int NOT_IMPLEMENTED_CODE501 Not Implemented
.- See Also:
-
NOT_IMPLEMENTED
501 Not Implemented
.- See Also:
-
BAD_GATEWAY_CODE
public static final int BAD_GATEWAY_CODE502 Bad Gateway
.- See Also:
-
BAD_GATEWAY
502 Bad Gateway
.- See Also:
-
SERVICE_UNAVAILABLE_CODE
public static final int SERVICE_UNAVAILABLE_CODE503 Service Unavailable
.- See Also:
-
SERVICE_UNAVAILABLE
503 Service Unavailable
.- See Also:
-
GATEWAY_TIMEOUT_CODE
public static final int GATEWAY_TIMEOUT_CODE504 Gateway Timeout
.- See Also:
-
GATEWAY_TIMEOUT
504 Gateway Timeout
.- See Also:
-
HTTP_VERSION_NOT_SUPPORTED_CODE
public static final int HTTP_VERSION_NOT_SUPPORTED_CODE505 HTTP Version Not Supported
.- See Also:
-
HTTP_VERSION_NOT_SUPPORTED
505 HTTP Version Not Supported
.- See Also:
-
VARIANT_ALSO_NEGOTIATES_CODE
public static final int VARIANT_ALSO_NEGOTIATES_CODE506 Variant Also Negotiates
. -
VARIANT_ALSO_NEGOTIATES
506 Variant Also Negotiates
.- See Also:
-
INSUFFICIENT_STORAGE_CODE
public static final int INSUFFICIENT_STORAGE_CODE507 Insufficient Storage
.- See Also:
-
INSUFFICIENT_STORAGE
507 Insufficient Storage
.- See Also:
-
LOOP_DETECTED_CODE
public static final int LOOP_DETECTED_CODE508 Loop Detected
. -
LOOP_DETECTED
508 Loop Detected
.- See Also:
-
BANDWIDTH_LIMIT_EXCEEDED_CODE
public static final int BANDWIDTH_LIMIT_EXCEEDED_CODE509 Bandwidth Limit Exceeded
.- See Also:
-
BANDWIDTH_LIMIT_EXCEEDED
509 Bandwidth Limit Exceeded
. -
NOT_EXTENDED_CODE
public static final int NOT_EXTENDED_CODE510 Not Extended
. -
NOT_EXTENDED
510 Not Extended
.- See Also:
-
NETWORK_AUTHENTICATION_REQUIRED_CODE
public static final int NETWORK_AUTHENTICATION_REQUIRED_CODE511 Network Authentication Required
. -
NETWORK_AUTHENTICATION_REQUIRED
511 Network Authentication Required
.- See Also:
-
-
Method Details
-
value
public int value()- Returns:
- Return the integer value of this status code.
-
reason
- Returns:
- the reason phrase of this status code.
-
toString
Return a string representation of this status code. -
equals
-
hashCode
public int hashCode() -
valueOf
Return the enum constant of this type with the specified numeric value.- Parameters:
statusCode
- the numeric value of the enum to be returned- Returns:
- the enum constant with the specified numeric value
- Throws:
IllegalArgumentException
- if this enum has no constant for the specified numeric value
-