public enum HttpResponseCode extends java.lang.Enum<HttpResponseCode>
| Enum Constant and Description |
|---|
ACCEPTED |
BAD_REQUEST |
NOT_FOUND |
OK |
SERVER_ERROR |
UNAUTHORIZED |
| Modifier and Type | Method and Description |
|---|---|
static HttpResponseCode |
byCode(int code) |
int |
code() |
static HttpResponseCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HttpResponseCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpResponseCode OK
public static final HttpResponseCode ACCEPTED
public static final HttpResponseCode BAD_REQUEST
public static final HttpResponseCode UNAUTHORIZED
public static final HttpResponseCode NOT_FOUND
public static final HttpResponseCode SERVER_ERROR
public static HttpResponseCode[] values()
for (HttpResponseCode c : HttpResponseCode.values()) System.out.println(c);
public static HttpResponseCode 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 code()
public static HttpResponseCode byCode(int code)