public final class Status extends Object implements Comparable<Status>, Serializable
Modifier and Type | Field and Description |
---|---|
static Status |
ACCEPTED
202 Accepted.
|
static int |
ACCEPTED_CODE
202 Accepted.
|
static Status |
BAD_GATEWAY
502 Bad Gateway.
|
static int |
BAD_GATEWAY_CODE
502 Bad Gateway.
|
static Status |
BAD_REQUEST
400 Bad Request.
|
static int |
BAD_REQUEST_CODE
400 Bad Request.
|
static Status |
CONFLICT
409 Conflict.
|
static int |
CONFLICT_CODE
409 Conflict.
|
static Status |
CONTINUE
100 Continue.
|
static Status |
CREATED
201 Created.
|
static int |
CREATED_CODE
201 Created.
|
static Status |
EXPECTATION_FAILED
417 Expectation Failed.
|
static int |
EXPECTATION_FAILED_CODE
417 Expectation Failed.
|
static Status |
FAILED_DEPENDENCY
424 Failed Dependency (WebDAV, RFC4918).
|
static int |
FAILED_DEPENDENCY_CODE
424 Failed Dependency (WebDAV, RFC4918).
|
static Status |
FORBIDDEN
403 Forbidden.
|
static int |
FORBIDDEN_CODE
403 Forbidden.
|
static Status |
FOUND
302 Found.
|
static int |
FOUND_CODE
302 Found.
|
static Status |
GATEWAY_TIMEOUT
504 Gateway Timeout.
|
static int |
GATEWAY_TIMEOUT_CODE
504 Gateway Timeout.
|
static Status |
GONE
410 Gone.
|
static int |
GONE_CODE
410 Gone.
|
static Status |
HTTP_VERSION_NOT_SUPPORTED
505 HTTP Version Not Supported.
|
static int |
HTTP_VERSION_NOT_SUPPORTED_CODE
505 HTTP Version Not Supported.
|
static Status |
INSUFFICIENT_STORAGE
507 Insufficient Storage (WebDAV, RFC4918).
|
static int |
INSUFFICIENT_STORAGE_CODE
507 Insufficient Storage (WebDAV, RFC4918).
|
static Status |
INTERNAL_SERVER_ERROR
500 Internal Server Error.
|
static int |
INTERNAL_SERVER_ERROR_CODE
500 Internal Server Error.
|
static Status |
LENGTH_REQUIRED
411 Length Required.
|
static int |
LENGTH_REQUIRED_CODE
411 Length Required.
|
static Status |
LOCKED
423 Locked (WebDAV, RFC4918).
|
static int |
LOCKED_CODE
423 Locked (WebDAV, RFC4918).
|
static Status |
METHOD_NOT_ALLOWED
405 Method Not Allowed.
|
static int |
METHOD_NOT_ALLOWED_CODE
405 Method Not Allowed.
|
static Status |
MOVED_PERMANENTLY
301 Moved Permanently.
|
static int |
MOVED_PERMANENTLY_CODE
301 Moved Permanently.
|
static Status |
MULTI_STATUS
207 Multi-Status (WebDAV, RFC2518).
|
static int |
MULTI_STATUS_CODE
207 Multi-Status (WebDAV, RFC2518).
|
static Status |
MULTIPLE_CHOICES
300 Multiple Choices.
|
static int |
MULTIPLE_CHOICES_CODE
300 Multiple Choices.
|
static Status |
NETWORK_AUTHENTICATION_REQUIRED
511 Network Authentication Required (RFC6585).
|
static int |
NETWORK_AUTHENTICATION_REQUIRED_CODE
511 Network Authentication Required (RFC6585).
|
static Status |
NO_CONTENT
204 No Content.
|
static int |
NO_CONTENT_CODE
204 No Content.
|
static Status |
NON_AUTHORITATIVE_INFORMATION
203 Non-Authoritative Information (since HTTP/1.1).
|
static int |
NON_AUTHORITATIVE_INFORMATION_CODE
203 Non-Authoritative Information (since HTTP/1.1).
|
static Status |
NOT_ACCEPTABLE
406 Not Acceptable.
|
static int |
NOT_ACCEPTABLE_CODE
406 Not Acceptable.
|
static Status |
NOT_EXTENDED
510 Not Extended (RFC2774).
|
static int |
NOT_EXTENDED_CODE
510 Not Extended (RFC2774).
|
static Status |
NOT_FOUND
404 Not Found.
|
static int |
NOT_FOUND_CODE
404 Not Found.
|
static Status |
NOT_IMPLEMENTED
501 Not Implemented.
|
static int |
NOT_IMPLEMENTED_CODE
501 Not Implemented.
|
static Status |
NOT_MODIFIED
304 Not Modified.
|
static int |
NOT_MODIFIED_CODE
304 Not Modified.
|
static Status |
OK
200 OK.
|
static int |
OK_CODE
200 OK.
|
static Status |
PARTIAL_CONTENT
206 Partial Content.
|
static int |
PARTIAL_CONTENT_CODE
206 Partial Content.
|
static Status |
PAYMENT_REQUIRED
402 Payment Required.
|
static int |
PAYMENT_REQUIRED_CODE
402 Payment Required.
|
static Status |
PRECONDITION_FAILED
412 Precondition Failed.
|
static int |
PRECONDITION_FAILED_CODE
412 Precondition Failed.
|
static Status |
PRECONDITION_REQUIRED
428 Precondition Required (RFC6585).
|
static int |
PRECONDITION_REQUIRED_CODE
428 Precondition Required (RFC6585).
|
static Status |
PROCESSING
102 Processing (WebDAV, RFC2518).
|
static int |
PROCESSING_CODE
102 Processing (WebDAV, RFC2518).
|
static Status |
PROXY_AUTHENTICATION_REQUIRED
407 Proxy Authentication Required.
|
static int |
PROXY_AUTHENTICATION_REQUIRED_CODE
407 Proxy Authentication Required.
|
static Status |
REQUEST_ENTITY_TOO_LARGE
413 Request Entity Too Large.
|
static int |
REQUEST_ENTITY_TOO_LARGE_CODE
413 Request Entity Too Large.
|
static Status |
REQUEST_HEADER_FIELDS_TOO_LARGE
431 Request Header Fields Too Large (RFC6585).
|
static int |
REQUEST_HEADER_FIELDS_TOO_LARGE_CODE
431 Request Header Fields Too Large (RFC6585).
|
static Status |
REQUEST_TIMEOUT
408 Request Timeout.
|
static int |
REQUEST_TIMEOUT_CODE
408 Request Timeout.
|
static Status |
REQUEST_URI_TOO_LONG
414 Request-URI Too Long.
|
static int |
REQUEST_URI_TOO_LONG_CODE
414 Request-URI Too Long.
|
static Status |
REQUESTED_RANGE_NOT_SATISFIABLE
416 Requested Range Not Satisfiable.
|
static int |
REQUESTED_RANGE_NOT_SATISFIABLE_CODE
416 Requested Range Not Satisfiable.
|
static Status |
RESET_CONTENT
205 Reset Content.
|
static int |
RESET_CONTENT_CODE
205 Reset Content.
|
static Status |
SEE_OTHER
303 See Other (since HTTP/1.1).
|
static int |
SEE_OTHER_CODE
303 See Other (since HTTP/1.1).
|
static Status |
SERVICE_UNAVAILABLE
503 Service Unavailable.
|
static int |
SERVICE_UNAVAILABLE_CODE
503 Service Unavailable.
|
static Status |
SWITCHING_PROTOCOLS
101 Switching Protocols.
|
static int |
SWITCHING_PROTOCOLS_CODE
101 Switching Protocols.
|
static Status |
TEMPORARY_REDIRECT
307 Temporary Redirect (since HTTP/1.1).
|
static int |
TEMPORARY_REDIRECT_CODE
307 Temporary Redirect (since HTTP/1.1).
|
static Status |
TOO_MANY_REQUESTS
429 Too Many Requests (RFC6585).
|
static int |
TOO_MANY_REQUESTS_CODE
429 Too Many Requests (RFC6585).
|
static Status |
UNAUTHORIZED
401 Unauthorized.
|
static int |
UNAUTHORIZED_CODE
401 Unauthorized.
|
static Status |
UNORDERED_COLLECTION
425 Unordered Collection (WebDAV, RFC3648).
|
static int |
UNORDERED_COLLECTION_CODE
425 Unordered Collection (WebDAV, RFC3648).
|
static Status |
UNPROCESSABLE_ENTITY
422 Unprocessable Entity (WebDAV, RFC4918).
|
static int |
UNPROCESSABLE_ENTITY_CODE
422 Unprocessable Entity (WebDAV, RFC4918).
|
static Status |
UNSUPPORTED_MEDIA_TYPE
415 Unsupported Media Type.
|
static int |
UNSUPPORTED_MEDIA_TYPE_CODE
415 Unsupported Media Type.
|
static Status |
UPGRADE_REQUIRED
426 Upgrade Required (RFC2817).
|
static int |
UPGRADE_REQUIRED_CODE
426 Upgrade Required (RFC2817).
|
static Status |
USE_PROXY
305 Use Proxy (since HTTP/1.1).
|
static int |
USE_PROXY_CODE
305 Use Proxy (since HTTP/1.1).
|
static Status |
VARIANT_ALSO_NEGOTIATES
506 Variant Also Negotiates (RFC2295).
|
static int |
VARIANT_ALSO_NEGOTIATES_CODE
506 Variant Also Negotiates (RFC2295).
|
Constructor and Description |
---|
Status(int code, String reasonPhrase)
Create new Status.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
bytes() |
int |
code() |
int |
compareTo(Status o) |
boolean |
equals(Object obj) |
int |
hashCode() |
String |
reasonPhrase() |
StatusClass |
statusClass() |
String |
toString() |
static Status |
valueOf(int code)
Returns the
Status represented by the specified code.
|
public static final Status CONTINUE
public static final int SWITCHING_PROTOCOLS_CODE
public static final Status SWITCHING_PROTOCOLS
public static final int PROCESSING_CODE
public static final Status PROCESSING
public static final int OK_CODE
public static final Status OK
public static final int CREATED_CODE
public static final Status CREATED
public static final int ACCEPTED_CODE
public static final Status ACCEPTED
public static final int NON_AUTHORITATIVE_INFORMATION_CODE
public static final Status NON_AUTHORITATIVE_INFORMATION
public static final int NO_CONTENT_CODE
public static final Status NO_CONTENT
public static final int RESET_CONTENT_CODE
public static final Status RESET_CONTENT
public static final int PARTIAL_CONTENT_CODE
public static final Status PARTIAL_CONTENT
public static final int MULTI_STATUS_CODE
public static final Status MULTI_STATUS
public static final int MULTIPLE_CHOICES_CODE
public static final Status MULTIPLE_CHOICES
public static final int MOVED_PERMANENTLY_CODE
public static final Status MOVED_PERMANENTLY
public static final int FOUND_CODE
public static final Status FOUND
public static final int SEE_OTHER_CODE
public static final Status SEE_OTHER
public static final int NOT_MODIFIED_CODE
public static final Status NOT_MODIFIED
public static final int USE_PROXY_CODE
public static final Status USE_PROXY
public static final int TEMPORARY_REDIRECT_CODE
public static final Status TEMPORARY_REDIRECT
public static final int BAD_REQUEST_CODE
public static final Status BAD_REQUEST
public static final int UNAUTHORIZED_CODE
public static final Status UNAUTHORIZED
public static final int PAYMENT_REQUIRED_CODE
public static final Status PAYMENT_REQUIRED
public static final int FORBIDDEN_CODE
public static final Status FORBIDDEN
public static final int NOT_FOUND_CODE
public static final Status NOT_FOUND
public static final int METHOD_NOT_ALLOWED_CODE
public static final Status METHOD_NOT_ALLOWED
public static final int NOT_ACCEPTABLE_CODE
public static final Status NOT_ACCEPTABLE
public static final int PROXY_AUTHENTICATION_REQUIRED_CODE
public static final Status PROXY_AUTHENTICATION_REQUIRED
public static final int REQUEST_TIMEOUT_CODE
public static final Status REQUEST_TIMEOUT
public static final int CONFLICT_CODE
public static final Status CONFLICT
public static final int GONE_CODE
public static final Status GONE
public static final int LENGTH_REQUIRED_CODE
public static final Status LENGTH_REQUIRED
public static final int PRECONDITION_FAILED_CODE
public static final Status PRECONDITION_FAILED
public static final int REQUEST_ENTITY_TOO_LARGE_CODE
public static final Status REQUEST_ENTITY_TOO_LARGE
public static final int REQUEST_URI_TOO_LONG_CODE
public static final Status REQUEST_URI_TOO_LONG
public static final int UNSUPPORTED_MEDIA_TYPE_CODE
public static final Status UNSUPPORTED_MEDIA_TYPE
public static final int REQUESTED_RANGE_NOT_SATISFIABLE_CODE
public static final Status REQUESTED_RANGE_NOT_SATISFIABLE
public static final int EXPECTATION_FAILED_CODE
public static final Status EXPECTATION_FAILED
public static final int UNPROCESSABLE_ENTITY_CODE
public static final Status UNPROCESSABLE_ENTITY
public static final int LOCKED_CODE
public static final Status LOCKED
public static final int FAILED_DEPENDENCY_CODE
public static final Status FAILED_DEPENDENCY
public static final int UNORDERED_COLLECTION_CODE
public static final Status UNORDERED_COLLECTION
public static final int UPGRADE_REQUIRED_CODE
public static final Status UPGRADE_REQUIRED
public static final int PRECONDITION_REQUIRED_CODE
public static final Status PRECONDITION_REQUIRED
public static final int TOO_MANY_REQUESTS_CODE
public static final Status TOO_MANY_REQUESTS
public static final int REQUEST_HEADER_FIELDS_TOO_LARGE_CODE
public static final Status REQUEST_HEADER_FIELDS_TOO_LARGE
public static final int INTERNAL_SERVER_ERROR_CODE
public static final Status INTERNAL_SERVER_ERROR
public static final int NOT_IMPLEMENTED_CODE
public static final Status NOT_IMPLEMENTED
public static final int BAD_GATEWAY_CODE
public static final Status BAD_GATEWAY
public static final int SERVICE_UNAVAILABLE_CODE
public static final Status SERVICE_UNAVAILABLE
public static final int GATEWAY_TIMEOUT_CODE
public static final Status GATEWAY_TIMEOUT
public static final int HTTP_VERSION_NOT_SUPPORTED_CODE
public static final Status HTTP_VERSION_NOT_SUPPORTED
public static final int VARIANT_ALSO_NEGOTIATES_CODE
public static final Status VARIANT_ALSO_NEGOTIATES
public static final int INSUFFICIENT_STORAGE_CODE
public static final Status INSUFFICIENT_STORAGE
public static final int NOT_EXTENDED_CODE
public static final Status NOT_EXTENDED
public static final int NETWORK_AUTHENTICATION_REQUIRED_CODE
public static final Status NETWORK_AUTHENTICATION_REQUIRED
public Status(int code, String reasonPhrase)
code
- Status code
reasonPhrase
- Reason phrase
public static Status valueOf(int code)
Status
represented by the specified code. If the specified code is a standard HTTP getStatus code, a cached instance will be returned. Otherwise, a new instance will be returned.
code
- Status code integer value
public int code()
public StatusClass statusClass()
public String reasonPhrase()
public byte[] bytes()
public int compareTo(Status o)
compareTo
in interface
Comparable<Status>