public static enum Http.Status extends Enum<Http.Status>
| Enum Constant and Description |
|---|
ACCEPTED |
CREATED |
FORBIDDEN |
INTERNAL_SERVER_ERROR |
NOT_FOUND |
OK |
PAYMENT_REQUIRED |
SERVICE_UNAVAILABLE |
UNPROCESSABLE_ENTITY |
| Modifier and Type | Field and Description |
|---|---|
int |
statusCode |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(int code) |
static Http.Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Http.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Http.Status OK
public static final Http.Status CREATED
public static final Http.Status ACCEPTED
public static final Http.Status PAYMENT_REQUIRED
public static final Http.Status FORBIDDEN
public static final Http.Status NOT_FOUND
public static final Http.Status UNPROCESSABLE_ENTITY
public static final Http.Status INTERNAL_SERVER_ERROR
public static final Http.Status SERVICE_UNAVAILABLE
public static Http.Status[] values()
for (Http.Status c : Http.Status.values()) System.out.println(c);
public static Http.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 boolean equals(int code)
Copyright © 2018. All rights reserved.