public enum HttpStatus extends java.lang.Enum<HttpStatus>
| Enum Constant and Description |
|---|
BAD_REQUEST |
CREATED |
INTERNAL_SERVER_ERROR |
METHOD_NOT_ALLOWED |
NO_CONTENT |
NOT_ACCEPTABLE |
NOT_FOUND |
NOT_IMPLEMENTED |
NOT_MODIFIED |
OK |
PRECONDITION_FAILED |
PRECONDITION_REQUIRED |
UNAUTHORIZED |
UNSUPPORTED_MEDIA_TYPE |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode() |
static HttpStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HttpStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpStatus OK
public static final HttpStatus CREATED
public static final HttpStatus NO_CONTENT
public static final HttpStatus NOT_MODIFIED
public static final HttpStatus BAD_REQUEST
public static final HttpStatus UNAUTHORIZED
public static final HttpStatus NOT_FOUND
public static final HttpStatus METHOD_NOT_ALLOWED
public static final HttpStatus NOT_ACCEPTABLE
public static final HttpStatus PRECONDITION_FAILED
public static final HttpStatus UNSUPPORTED_MEDIA_TYPE
public static final HttpStatus PRECONDITION_REQUIRED
public static final HttpStatus INTERNAL_SERVER_ERROR
public static final HttpStatus NOT_IMPLEMENTED
public static HttpStatus[] values()
for (HttpStatus c : HttpStatus.values()) System.out.println(c);
public static HttpStatus valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getCode()