public enum ErrorClassification extends java.lang.Enum<ErrorClassification>
Error classes we use in the Keep API on the request side
Modifier and Type | Method and Description |
---|---|
static ErrorClassification |
get(java.lang.String code)
Translate a code into an ErrorClassification
|
java.lang.String |
getCode() |
int |
getValue() |
static ErrorClassification |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ErrorClassification[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorClassification MOVEDPERMANENTLY
public static final ErrorClassification MOVEDTEMPORARY
public static final ErrorClassification BADREQUEST
public static final ErrorClassification UNAUTHORIZED
public static final ErrorClassification PAYMENTREQUIRED
public static final ErrorClassification FORBIDDEN
public static final ErrorClassification NOTFOUND
public static final ErrorClassification METHODNOTALLOWED
public static final ErrorClassification NOTACCEPTABLE
public static final ErrorClassification REQUESTTIMEOUT
public static final ErrorClassification CONFLICT
public static final ErrorClassification GONE
public static final ErrorClassification LENGTHREQUIRED
public static final ErrorClassification PRECONDITIONFAILED
public static final ErrorClassification PAYLOADTOOLARGE
public static final ErrorClassification TEAPOT
public static final ErrorClassification UNAVAILABLEFORLEGALREASONS
public static final ErrorClassification INTERNALSERVERERROR
public static final ErrorClassification NOTIMPLEMENTED
public static final ErrorClassification SERVICEUNAVAILABLE
public static ErrorClassification[] values()
for (ErrorClassification c : ErrorClassification.values()) System.out.println(c);
public static ErrorClassification 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 static ErrorClassification get(java.lang.String code)
Translate a code into an ErrorClassification
code
- public java.lang.String getCode()
public int getValue()