public class HttpStatus
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
HTTP_ACCEPTED
HTTP Status-Code 202: Accepted.
|
static int |
HTTP_BAD_GATEWAY
HTTP Status-Code 502: Bad Gateway.
|
static int |
HTTP_BAD_METHOD
HTTP Status-Code 405: Method Not Allowed.
|
static int |
HTTP_BAD_REQUEST
HTTP Status-Code 400: Bad Request.
|
static int |
HTTP_CLIENT_TIMEOUT
HTTP Status-Code 408: Request Time-Out.
|
static int |
HTTP_CONFLICT
HTTP Status-Code 409: Conflict.
|
static int |
HTTP_CONTINUE
HTTP Status-Code 100: Continue.
|
static int |
HTTP_CREATED
HTTP Status-Code 201: Created.
|
static int |
HTTP_ENTITY_TOO_LARGE
HTTP Status-Code 413: Request Entity Too Large.
|
static int |
HTTP_FORBIDDEN
HTTP Status-Code 403: Forbidden.
|
static int |
HTTP_GATEWAY_TIMEOUT
HTTP Status-Code 504: Gateway Timeout.
|
static int |
HTTP_GONE
HTTP Status-Code 410: Gone.
|
static int |
HTTP_INTERNAL_ERROR
HTTP Status-Code 500: Internal Server Error.
|
static int |
HTTP_LENGTH_REQUIRED
HTTP Status-Code 411: Length Required.
|
static int |
HTTP_MOVED_PERMANENTLY
HTTP Status-Code 301: Moved Permanently.
|
static int |
HTTP_MOVED_TEMPORARY
HTTP Status-Code 302: Temporary Redirect.
|
static int |
HTTP_MULTIPLE_CHOICES
HTTP Status-Code 300: Multiple Choices.
|
static int |
HTTP_NO_CONTENT
HTTP Status-Code 204: No Content.
|
static int |
HTTP_NOT_ACCEPTABLE
HTTP Status-Code 406: Not Acceptable.
|
static int |
HTTP_NOT_AUTHORITATIVE
HTTP Status-Code 203: Non-Authoritative Information.
|
static int |
HTTP_NOT_FOUND
HTTP Status-Code 404: Not Found.
|
static int |
HTTP_NOT_IMPLEMENTED
HTTP Status-Code 501: Not Implemented.
|
static int |
HTTP_NOT_MODIFIED
HTTP Status-Code 304: Not Modified.
|
static int |
HTTP_OK
HTTP Status-Code 200: OK.
|
static int |
HTTP_PARTIAL
HTTP Status-Code 206: Partial Content.
|
static int |
HTTP_PAYMENT_REQUIRED
HTTP Status-Code 402: Payment Required.
|
static int |
HTTP_PRECON_FAILED
HTTP Status-Code 412: Precondition Failed.
|
static int |
HTTP_PROXY_AUTH_REQUIRED
HTTP Status-Code 407: Proxy Authentication Required.
|
static int |
HTTP_REQ_TOO_LONG
HTTP Status-Code 414: Request-URI Too Large.
|
static int |
HTTP_RESET
HTTP Status-Code 205: Reset Content.
|
static int |
HTTP_SEE_OTHER
HTTP Status-Code 303: See Other.
|
static int |
HTTP_TEMPORARY_REDIRECT
HTTP Status-Code 307: Temporary Redirect.
|
static int |
HTTP_UNAUTHORIZED
HTTP Status-Code 401: Unauthorized.
|
static int |
HTTP_UNAVAILABLE
HTTP Status-Code 503: Service Unavailable.
|
static int |
HTTP_UNSUPPORTED_TYPE
HTTP Status-Code 415: Unsupported Media Type.
|
static int |
HTTP_USE_PROXY
HTTP Status-Code 305: Use Proxy.
|
static int |
HTTP_VERSION_NOT_SUPPORTED
HTTP Status-Code 505: HTTP Version Not Supported.
|
Constructor and Description |
---|
HttpStatus() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isError(int statusCode)
Returns
true if status code indicates an error. |
static boolean |
isRedirect(int statusCode)
Returns
true if status code indicates a redirect. |
static boolean |
isSuccessful(int statusCode)
Returns
true if status code indicates successful result. |
public static final int HTTP_CONTINUE
public static final int HTTP_OK
public static final int HTTP_CREATED
public static final int HTTP_ACCEPTED
public static final int HTTP_NOT_AUTHORITATIVE
public static final int HTTP_NO_CONTENT
public static final int HTTP_RESET
public static final int HTTP_PARTIAL
public static final int HTTP_MULTIPLE_CHOICES
public static final int HTTP_MOVED_PERMANENTLY
public static final int HTTP_MOVED_TEMPORARY
public static final int HTTP_SEE_OTHER
public static final int HTTP_NOT_MODIFIED
public static final int HTTP_USE_PROXY
public static final int HTTP_TEMPORARY_REDIRECT
public static final int HTTP_BAD_REQUEST
public static final int HTTP_UNAUTHORIZED
public static final int HTTP_PAYMENT_REQUIRED
public static final int HTTP_FORBIDDEN
public static final int HTTP_NOT_FOUND
public static final int HTTP_BAD_METHOD
public static final int HTTP_NOT_ACCEPTABLE
public static final int HTTP_PROXY_AUTH_REQUIRED
public static final int HTTP_CLIENT_TIMEOUT
public static final int HTTP_CONFLICT
public static final int HTTP_GONE
public static final int HTTP_LENGTH_REQUIRED
public static final int HTTP_PRECON_FAILED
public static final int HTTP_ENTITY_TOO_LARGE
public static final int HTTP_REQ_TOO_LONG
public static final int HTTP_UNSUPPORTED_TYPE
public static final int HTTP_INTERNAL_ERROR
public static final int HTTP_NOT_IMPLEMENTED
public static final int HTTP_BAD_GATEWAY
public static final int HTTP_UNAVAILABLE
public static final int HTTP_GATEWAY_TIMEOUT
public static final int HTTP_VERSION_NOT_SUPPORTED
public static boolean isSuccessful(int statusCode)
true
if status code indicates successful result.public static boolean isRedirect(int statusCode)
true
if status code indicates a redirect.public static boolean isError(int statusCode)
true
if status code indicates an error.Copyright © 2003-present Jodd Team