public static enum HttpResponse.Status extends Enum<HttpResponse.Status>
| Enum Constant and Description |
|---|
BAD_REQUEST |
INTERNAL_SERVER_ERROR |
NOT_FOUND |
OK |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode() |
String |
getDescription() |
static HttpResponse.Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpResponse.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpResponse.Status OK
public static final HttpResponse.Status BAD_REQUEST
public static final HttpResponse.Status NOT_FOUND
public static final HttpResponse.Status INTERNAL_SERVER_ERROR
public static HttpResponse.Status[] values()
for (HttpResponse.Status c : HttpResponse.Status.values()) System.out.println(c);
public static HttpResponse.Status valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getCode()
public String getDescription()