public enum APIErrorCode extends java.lang.Enum<APIErrorCode>
| Enum Constant and Description |
|---|
BAD_REQUEST_FORMAT
Status Code 400.
|
CREDENTIALS_INVALID
Status Code 403.
|
CREDENTIALS_MISSING
Status Code 401.
|
INSUFFICIENT_BALANCE
Status Code 402.
|
TOO_MANY_ITEMS
Status Code 413.
|
TOO_MANY_REQUESTS
Status Code 429.
|
UNSUPPORTED_METHOD
Status Code 405.
|
| Modifier and Type | Method and Description |
|---|---|
static APIErrorCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static APIErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final APIErrorCode BAD_REQUEST_FORMAT
Status Code 400.
Generic status for various client request errors.
public static final APIErrorCode CREDENTIALS_MISSING
Status Code 401.
Credentials (API key or Secret key) is missing from request headers.
public static final APIErrorCode INSUFFICIENT_BALANCE
Status Code 402.
Account profile balance is insufficient to process the request.
public static final APIErrorCode CREDENTIALS_INVALID
Status Code 403.
Returned on invalid credentials (API key or Secret key is of wrong format or unknown to service).
public static final APIErrorCode UNSUPPORTED_METHOD
Status Code 405.
Returned on requests with method other than POST.
public static final APIErrorCode TOO_MANY_ITEMS
Status Code 413.
Request contains too many items.
public static final APIErrorCode TOO_MANY_REQUESTS
Status Code 429.
Too many requests per second.
public static APIErrorCode[] values()
for (APIErrorCode c : APIErrorCode.values()) System.out.println(c);
public static APIErrorCode 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 null