public final class HttpStatus
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ACCEPTED
The request has been accepted for processing, but the processing has not been completed.
|
static int |
BAD_REQUEST
The request could not be understood by the server due to malformed syntax.
|
static int |
CONFLICT
The request could not be completed due to a conflict with the current state of the resource.
|
static int |
CREATED
The request has been fulfilled and resulted in a new resource being created.
|
static int |
FORBIDDEN
The request was a legal request, but the server is refusing to respond to it
|
static int |
GONE
The requested resource is no longer available at the server and no forwarding address is known.
|
static int |
INTERNAL_SERVER_ERROR
The server encountered an unexpected condition which prevented it from fulfilling the request.
|
static int |
METHOD_NOT_ALLOWED
The method is not allowed to access the request URI.
|
static int |
NO_CONTENT
The server has fulfilled the request but does not need to return an entity-body.
|
static int |
NOT_FOUND
The server has not found anything matching the request URI.
|
static int |
OK
The request has succeeded.
|
static int |
SERVICE_UNAVAILABLE
The server is currently unable to handle the request due to a temporary overloading or maintenance of the server.
|
static int |
UNKNOWN
Does not belong to the HTTP standard status codes.
|
static int |
UNPROCESSABLE_ENTITY
The syntax of the request entity is correct (thus a 400 (Bad Request) status code is inappropriate) but was unable
to process the contained instructions.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
name(int status)
Returns the name of the specified HTTP status code or null if the code is undefined.
|
public static final int UNKNOWN
public static final int OK
public static final int CREATED
public static final int ACCEPTED
public static final int NO_CONTENT
public static final int BAD_REQUEST
public static final int FORBIDDEN
public static final int NOT_FOUND
public static final int METHOD_NOT_ALLOWED
public static final int CONFLICT
public static final int GONE
public static final int UNPROCESSABLE_ENTITY
public static final int INTERNAL_SERVER_ERROR
public static final int SERVICE_UNAVAILABLE