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