The HTTP status code series can be retrieved via series().
HttpStatus.Series , HTTP Status Code Registry, List of HTTP status codes - Wikipedia
| Modifier and Type | Class and Description |
|---|---|
| public static enum | HttpStatus.
Enumeration of HTTP status series. |
| Modifier and Type | Field and Description |
|---|---|
| public static final HttpStatus | ACCEPTED
|
| public static final HttpStatus | ALREADY_REPORTED
|
| public static final HttpStatus | BAD_GATEWAY
|
| public static final HttpStatus | BAD_REQUEST
|
| public static final HttpStatus | BANDWIDTH_LIMIT_EXCEEDED
|
| public static final HttpStatus | CHECKPOINT
Deprecated
since 6.0.5. in favor of EARLY_HINTS which will be returned from HttpStatus.valueOf(103)
103 Checkpoint.
|
| public static final HttpStatus | CONFLICT
|
| public static final HttpStatus | CONTINUE
|
| public static final HttpStatus | CREATED
|
| public static final HttpStatus | DESTINATION_LOCKED
Deprecated
See
WebDAV Draft Changes
|
| public static final HttpStatus | EARLY_HINTS
|
| public static final HttpStatus | EXPECTATION_FAILED
|
| public static final HttpStatus | FAILED_DEPENDENCY
|
| public static final HttpStatus | FORBIDDEN
|
| public static final HttpStatus | FOUND
|
| public static final HttpStatus | GATEWAY_TIMEOUT
|
| public static final HttpStatus | GONE
|
| public static final HttpStatus | HTTP_VERSION_NOT_SUPPORTED
|
| public static final HttpStatus | I_AM_A_TEAPOT
|
| public static final HttpStatus | IM_USED
|
| public static final HttpStatus | INSUFFICIENT_SPACE_ON_RESOURCE
Deprecated
See
WebDAV Draft Changes
|
| public static final HttpStatus | INSUFFICIENT_STORAGE
|
| public static final HttpStatus | INTERNAL_SERVER_ERROR
|
| public static final HttpStatus | LENGTH_REQUIRED
|
| public static final HttpStatus | LOCKED
|
| public static final HttpStatus | LOOP_DETECTED
|
| public static final HttpStatus | METHOD_FAILURE
Deprecated
See
WebDAV Draft Changes
|
| public static final HttpStatus | METHOD_NOT_ALLOWED
|
| public static final HttpStatus | MOVED_PERMANENTLY
|
| public static final HttpStatus | MOVED_TEMPORARILY
Deprecated
in favor of FOUND which will be returned from HttpStatus.valueOf(302)
302 Moved Temporarily.
|
| public static final HttpStatus | MULTI_STATUS
|
| public static final HttpStatus | MULTIPLE_CHOICES
|
| public static final HttpStatus | NETWORK_AUTHENTICATION_REQUIRED
|
| public static final HttpStatus | NO_CONTENT
|
| public static final HttpStatus | NON_AUTHORITATIVE_INFORMATION
|
| public static final HttpStatus | NOT_ACCEPTABLE
|
| public static final HttpStatus | NOT_EXTENDED
|
| public static final HttpStatus | NOT_FOUND
|
| public static final HttpStatus | NOT_IMPLEMENTED
|
| public static final HttpStatus | NOT_MODIFIED
|
| public static final HttpStatus | OK
|
| public static final HttpStatus | PARTIAL_CONTENT
|
| public static final HttpStatus | PAYLOAD_TOO_LARGE
|
| public static final HttpStatus | PAYMENT_REQUIRED
|
| public static final HttpStatus | PERMANENT_REDIRECT
|
| public static final HttpStatus | PRECONDITION_FAILED
|
| public static final HttpStatus | PRECONDITION_REQUIRED
|
| public static final HttpStatus | PROCESSING
|
| public static final HttpStatus | PROXY_AUTHENTICATION_REQUIRED
|
| private final String | |
| public static final HttpStatus | REQUEST_ENTITY_TOO_LARGE
Deprecated
in favor of PAYLOAD_TOO_LARGE which will be
returned from HttpStatus.valueOf(413)
413 Request Entity Too Large.
|
| public static final HttpStatus | REQUEST_HEADER_FIELDS_TOO_LARGE
|
| public static final HttpStatus | REQUEST_TIMEOUT
|
| public static final HttpStatus | REQUEST_URI_TOO_LONG
Deprecated
in favor of URI_TOO_LONG which will be returned from HttpStatus.valueOf(414)
414 Request-URI Too Long.
|
| public static final HttpStatus | REQUESTED_RANGE_NOT_SATISFIABLE
|
| public static final HttpStatus | RESET_CONTENT
|
| public static final HttpStatus | SEE_OTHER
|
| private final HttpStatus. | |
| public static final HttpStatus | SERVICE_UNAVAILABLE
|
| public static final HttpStatus | SWITCHING_PROTOCOLS
|
| public static final HttpStatus | TEMPORARY_REDIRECT
|
| public static final HttpStatus | TOO_EARLY
|
| public static final HttpStatus | TOO_MANY_REQUESTS
|
| public static final HttpStatus | UNAUTHORIZED
|
| public static final HttpStatus | UNAVAILABLE_FOR_LEGAL_REASONS
|
| public static final HttpStatus | UNPROCESSABLE_ENTITY
|
| public static final HttpStatus | UNSUPPORTED_MEDIA_TYPE
|
| public static final HttpStatus | UPGRADE_REQUIRED
|
| public static final HttpStatus | URI_TOO_LONG
|
| public static final HttpStatus | USE_PROXY
Deprecated
due to security concerns regarding in-band configuration of a proxy
305 Use Proxy.
|
| private final int | |
| private static final HttpStatus[] | |
| public static final HttpStatus | VARIANT_ALSO_NEGOTIATES
|
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public boolean | is1xxInformational()
Implements org. Whether this status code is in the Informational class ( |
| public boolean | is2xxSuccessful()
Implements org. Whether this status code is in the Successful class ( |
| public boolean | is3xxRedirection()
Implements org. Whether this status code is in the Redirection class ( |
| public boolean | is4xxClientError()
Implements org. Whether this status code is in the Client Error class ( |
| public boolean | is5xxServerError()
Implements org. Whether this status code is in the Server Error class ( |
| public boolean | isError()
Implements org. Whether this status code is in the Client or Server Error class |
| public static HttpStatus | Returns: the correspondingHttpStatus, or null if not foundthe HTTP status code (potentially non-standard) statusCode)Resolve the given status code to an |
| public HttpStatus. | |
| public String | |
| public int | value()
Implements org. Return the integer value of this status code. |
| public static HttpStatus | |
| public static HttpStatus | Returns: the enum constant with the specified numeric valuethe numeric value of the enum to be returned statusCode)Hides org. Return the |
| public static HttpStatus[] |
| ACCEPTED | back to summary |
|---|---|
| public static final HttpStatus ACCEPTED
| |
| ALREADY_REPORTED | back to summary |
|---|---|
| public static final HttpStatus ALREADY_REPORTED
| |
| BAD_GATEWAY | back to summary |
|---|---|
| public static final HttpStatus BAD_GATEWAY
| |
| BAD_REQUEST | back to summary |
|---|---|
| public static final HttpStatus BAD_REQUEST
| |
| BANDWIDTH_LIMIT_EXCEEDED | back to summary |
|---|---|
| public static final HttpStatus BANDWIDTH_LIMIT_EXCEEDED
| |
| CHECKPOINT | back to summary |
|---|---|
| public static final HttpStatus CHECKPOINT
| |
| CONFLICT | back to summary |
|---|---|
| public static final HttpStatus CONFLICT
| |
| CONTINUE | back to summary |
|---|---|
| public static final HttpStatus CONTINUE
| |
| CREATED | back to summary |
|---|---|
| public static final HttpStatus CREATED
| |
| DESTINATION_LOCKED | back to summary |
|---|---|
| public static final HttpStatus DESTINATION_LOCKED
Deprecated | |
| EARLY_HINTS | back to summary |
|---|---|
| public static final HttpStatus EARLY_HINTS
| |
| EXPECTATION_FAILED | back to summary |
|---|---|
| public static final HttpStatus EXPECTATION_FAILED
| |
| FAILED_DEPENDENCY | back to summary |
|---|---|
| public static final HttpStatus FAILED_DEPENDENCY
| |
| FORBIDDEN | back to summary |
|---|---|
| public static final HttpStatus FORBIDDEN
| |
| FOUND | back to summary |
|---|---|
| public static final HttpStatus FOUND
| |
| GATEWAY_TIMEOUT | back to summary |
|---|---|
| public static final HttpStatus GATEWAY_TIMEOUT
| |
| GONE | back to summary |
|---|---|
| public static final HttpStatus GONE
| |
| HTTP_VERSION_NOT_SUPPORTED | back to summary |
|---|---|
| public static final HttpStatus HTTP_VERSION_NOT_SUPPORTED
| |
| I_AM_A_TEAPOT | back to summary |
|---|---|
| public static final HttpStatus I_AM_A_TEAPOT
| |
| IM_USED | back to summary |
|---|---|
| public static final HttpStatus IM_USED
| |
| INSUFFICIENT_SPACE_ON_RESOURCE | back to summary |
|---|---|
| public static final HttpStatus INSUFFICIENT_SPACE_ON_RESOURCE
Deprecated | |
| INSUFFICIENT_STORAGE | back to summary |
|---|---|
| public static final HttpStatus INSUFFICIENT_STORAGE
| |
| INTERNAL_SERVER_ERROR | back to summary |
|---|---|
| public static final HttpStatus INTERNAL_SERVER_ERROR
| |
| LENGTH_REQUIRED | back to summary |
|---|---|
| public static final HttpStatus LENGTH_REQUIRED
| |
| LOCKED | back to summary |
|---|---|
| public static final HttpStatus LOCKED
| |
| LOOP_DETECTED | back to summary |
|---|---|
| public static final HttpStatus LOOP_DETECTED
| |
| METHOD_FAILURE | back to summary |
|---|---|
| public static final HttpStatus METHOD_FAILURE
Deprecated | |
| METHOD_NOT_ALLOWED | back to summary |
|---|---|
| public static final HttpStatus METHOD_NOT_ALLOWED
| |
| MOVED_PERMANENTLY | back to summary |
|---|---|
| public static final HttpStatus MOVED_PERMANENTLY
| |
| MOVED_TEMPORARILY | back to summary |
|---|---|
| public static final HttpStatus MOVED_TEMPORARILY
Deprecated in favor of
| |
| MULTI_STATUS | back to summary |
|---|---|
| public static final HttpStatus MULTI_STATUS
| |
| MULTIPLE_CHOICES | back to summary |
|---|---|
| public static final HttpStatus MULTIPLE_CHOICES
| |
| NETWORK_AUTHENTICATION_REQUIRED | back to summary |
|---|---|
| public static final HttpStatus NETWORK_AUTHENTICATION_REQUIRED
| |
| NO_CONTENT | back to summary |
|---|---|
| public static final HttpStatus NO_CONTENT
| |
| NON_AUTHORITATIVE_INFORMATION | back to summary |
|---|---|
| public static final HttpStatus NON_AUTHORITATIVE_INFORMATION
| |
| NOT_ACCEPTABLE | back to summary |
|---|---|
| public static final HttpStatus NOT_ACCEPTABLE
| |
| NOT_EXTENDED | back to summary |
|---|---|
| public static final HttpStatus NOT_EXTENDED
| |
| NOT_FOUND | back to summary |
|---|---|
| public static final HttpStatus NOT_FOUND
| |
| NOT_IMPLEMENTED | back to summary |
|---|---|
| public static final HttpStatus NOT_IMPLEMENTED
| |
| NOT_MODIFIED | back to summary |
|---|---|
| public static final HttpStatus NOT_MODIFIED
| |
| OK | back to summary |
|---|---|
| public static final HttpStatus OK
| |
| PARTIAL_CONTENT | back to summary |
|---|---|
| public static final HttpStatus PARTIAL_CONTENT
| |
| PAYLOAD_TOO_LARGE | back to summary |
|---|---|
| public static final HttpStatus PAYLOAD_TOO_LARGE
| |
| PAYMENT_REQUIRED | back to summary |
|---|---|
| public static final HttpStatus PAYMENT_REQUIRED
| |
| PERMANENT_REDIRECT | back to summary |
|---|---|
| public static final HttpStatus PERMANENT_REDIRECT
| |
| PRECONDITION_FAILED | back to summary |
|---|---|
| public static final HttpStatus PRECONDITION_FAILED
| |
| PRECONDITION_REQUIRED | back to summary |
|---|---|
| public static final HttpStatus PRECONDITION_REQUIRED
| |
| PROCESSING | back to summary |
|---|---|
| public static final HttpStatus PROCESSING
| |
| PROXY_AUTHENTICATION_REQUIRED | back to summary |
|---|---|
| public static final HttpStatus PROXY_AUTHENTICATION_REQUIRED
| |
| reasonPhrase | back to summary |
|---|---|
| private final String reasonPhrase | |
| REQUEST_ENTITY_TOO_LARGE | back to summary |
|---|---|
| public static final HttpStatus REQUEST_ENTITY_TOO_LARGE
Deprecated in favor of
| |
| REQUEST_HEADER_FIELDS_TOO_LARGE | back to summary |
|---|---|
| public static final HttpStatus REQUEST_HEADER_FIELDS_TOO_LARGE
| |
| REQUEST_TIMEOUT | back to summary |
|---|---|
| public static final HttpStatus REQUEST_TIMEOUT
| |
| REQUEST_URI_TOO_LONG | back to summary |
|---|---|
| public static final HttpStatus REQUEST_URI_TOO_LONG
Deprecated in favor of
| |
| REQUESTED_RANGE_NOT_SATISFIABLE | back to summary |
|---|---|
| public static final HttpStatus REQUESTED_RANGE_NOT_SATISFIABLE
| |
| RESET_CONTENT | back to summary |
|---|---|
| public static final HttpStatus RESET_CONTENT
| |
| SEE_OTHER | back to summary |
|---|---|
| public static final HttpStatus SEE_OTHER
| |
| series | back to summary |
|---|---|
| private final HttpStatus. | |
| SERVICE_UNAVAILABLE | back to summary |
|---|---|
| public static final HttpStatus SERVICE_UNAVAILABLE
| |
| SWITCHING_PROTOCOLS | back to summary |
|---|---|
| public static final HttpStatus SWITCHING_PROTOCOLS
| |
| TEMPORARY_REDIRECT | back to summary |
|---|---|
| public static final HttpStatus TEMPORARY_REDIRECT
| |
| TOO_EARLY | back to summary |
|---|---|
| public static final HttpStatus TOO_EARLY
| |
| TOO_MANY_REQUESTS | back to summary |
|---|---|
| public static final HttpStatus TOO_MANY_REQUESTS
| |
| UNAUTHORIZED | back to summary |
|---|---|
| public static final HttpStatus UNAUTHORIZED
| |
| UNAVAILABLE_FOR_LEGAL_REASONS | back to summary |
|---|---|
| public static final HttpStatus UNAVAILABLE_FOR_LEGAL_REASONS
| |
| UNPROCESSABLE_ENTITY | back to summary |
|---|---|
| public static final HttpStatus UNPROCESSABLE_ENTITY
| |
| UNSUPPORTED_MEDIA_TYPE | back to summary |
|---|---|
| public static final HttpStatus UNSUPPORTED_MEDIA_TYPE
| |
| UPGRADE_REQUIRED | back to summary |
|---|---|
| public static final HttpStatus UPGRADE_REQUIRED
| |
| URI_TOO_LONG | back to summary |
|---|---|
| public static final HttpStatus URI_TOO_LONG
| |
| USE_PROXY | back to summary |
|---|---|
| public static final HttpStatus USE_PROXY
Deprecated due to security concerns regarding in-band configuration of a proxy
| |
| value | back to summary |
|---|---|
| private final int value | |
| VALUES | back to summary |
|---|---|
| private static final HttpStatus[] VALUES | |
| VARIANT_ALSO_NEGOTIATES | back to summary |
|---|---|
| public static final HttpStatus VARIANT_ALSO_NEGOTIATES
| |
| HttpStatus | back to summary |
|---|---|
| private HttpStatus(int value, HttpStatus. | |
| getReasonPhrase | back to summary |
|---|---|
| public String getReasonPhrase() Return the reason phrase of this status code. | |
| is1xxInformational | back to summary |
|---|---|
| public boolean is1xxInformational() Implements org. Doc from org. Whether this status code is in the Informational class (
| |
| is2xxSuccessful | back to summary |
|---|---|
| public boolean is2xxSuccessful() Implements org. Doc from org. Whether this status code is in the Successful class (
| |
| is3xxRedirection | back to summary |
|---|---|
| public boolean is3xxRedirection() Implements org. Doc from org. Whether this status code is in the Redirection class (
| |
| is4xxClientError | back to summary |
|---|---|
| public boolean is4xxClientError() Implements org. Doc from org. Whether this status code is in the Client Error class (
| |
| is5xxServerError | back to summary |
|---|---|
| public boolean is5xxServerError() Implements org. Doc from org. Whether this status code is in the Server Error class (
| |
| isError | back to summary |
|---|---|
| public boolean isError() Implements org. Doc from org. Whether this status code is in the Client or Server Error class
| |
| resolve | back to summary |
|---|---|
| public static HttpStatus resolve(int statusCode) Resolve the given status code to an
| |
| series | back to summary |
|---|---|
| public HttpStatus. Return the HTTP status series of this status code.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Return a string representation of this status code.
| |
| value | back to summary |
|---|---|
| public int value() Implements org. Doc from org. Return the integer value of this status code.
| |
| valueOf | back to summary |
|---|---|
| public static HttpStatus valueOf(String name) | |
| valueOf | back to summary |
|---|---|
| public static HttpStatus valueOf(int statusCode) Hides org. Return the
| |
| values | back to summary |
|---|---|
| public static HttpStatus[] values() | |
Retrievable via HttpStatus#series().
| Modifier and Type | Field and Description |
|---|---|
| public static final HttpStatus. | |
| public static final HttpStatus. | |
| public static final HttpStatus. | |
| public static final HttpStatus. | |
| public static final HttpStatus. | |
| private final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static HttpStatus. | Returns: the correspondingSeries, or null if not foundthe HTTP status code (potentially non-standard) statusCode)Resolve the given status code to an |
| public int | |
| public static HttpStatus. | |
| public static HttpStatus. | Returns: theSeries enum constant for the supplied HttpStatusa standard HTTP status enum constant status)
Deprecated
as of 5.3, in favor of invoking
HttpStatus#series() directly
Return the |
| public static HttpStatus. | Returns: theSeries enum constant for the supplied status codethe HTTP status code (potentially non-standard) statusCode)Return the |
| public static HttpStatus. |
| CLIENT_ERROR | back to summary |
|---|---|
| public static final HttpStatus. | |
| INFORMATIONAL | back to summary |
|---|---|
| public static final HttpStatus. | |
| REDIRECTION | back to summary |
|---|---|
| public static final HttpStatus. | |
| SERVER_ERROR | back to summary |
|---|---|
| public static final HttpStatus. | |
| SUCCESSFUL | back to summary |
|---|---|
| public static final HttpStatus. | |
| value | back to summary |
|---|---|
| private final int value | |
| Series | back to summary |
|---|---|
| private Series(int value) | |
| resolve | back to summary |
|---|---|
| public static HttpStatus. Resolve the given status code to an
| |
| value | back to summary |
|---|---|
| public int value() Return the integer value of this status series. Ranges from 1 to 5. | |
| valueOf | back to summary |
|---|---|
| public static HttpStatus. | |
| valueOf | back to summary |
|---|---|
| public static HttpStatus. Deprecated as of 5.3, in favor of invoking Return the
| |
| valueOf | back to summary |
|---|---|
| public static HttpStatus. Return the
| |
| values | back to summary |
|---|---|
| public static HttpStatus. | |