public static enum ResponseCode.Error extends java.lang.Enum<ResponseCode.Error>
| Enum Constant and Description |
|---|
BAD_PARAMETER |
CONTENT_LENGTH_NOT_EXIST |
INTERNAL_SERVER_ERROR |
INVALID_AUTH_TOKEN |
METHOD_NOT_ALLOWED |
PRECONDITION_FAILED |
REQUEST_CONFLICT |
REQUEST_FORBIDDEN |
REQUEST_RATE_LIMITED |
RESOURCE_NOT_FOUND |
SERVICE_UNAVAILABLE |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription() |
int |
getValue() |
static ResponseCode.Error |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ResponseCode.Error[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResponseCode.Error BAD_PARAMETER
public static final ResponseCode.Error INVALID_AUTH_TOKEN
public static final ResponseCode.Error REQUEST_FORBIDDEN
public static final ResponseCode.Error RESOURCE_NOT_FOUND
public static final ResponseCode.Error METHOD_NOT_ALLOWED
public static final ResponseCode.Error REQUEST_CONFLICT
public static final ResponseCode.Error CONTENT_LENGTH_NOT_EXIST
public static final ResponseCode.Error PRECONDITION_FAILED
public static final ResponseCode.Error REQUEST_RATE_LIMITED
public static final ResponseCode.Error INTERNAL_SERVER_ERROR
public static final ResponseCode.Error SERVICE_UNAVAILABLE
public static ResponseCode.Error[] values()
for (ResponseCode.Error c : ResponseCode.Error.values()) System.out.println(c);
public static ResponseCode.Error 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 getValue()
public java.lang.String getDescription()