public static enum APIError.Type extends Enum<APIError.Type>
Enum Constant and Description |
---|
BAD_REQUEST
The requested operation could not be performed because the request
itself was malformed.
|
INSUFFICIENT_CREDENTIALS
The credentials provided were not necessarily invalid, but were not
sufficient to determine validity.
|
INTERNAL_ERROR
An internal server error has occurred.
|
INVALID_CREDENTIALS
The credentials provided were invalid.
|
NOT_FOUND
An object related to the request does not exist.
|
PERMISSION_DENIED
Permission was denied to perform the requested operation.
|
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response.Status |
getStatus()
Returns the HTTP status associated with this error type.
|
static APIError.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static APIError.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final APIError.Type BAD_REQUEST
public static final APIError.Type INVALID_CREDENTIALS
public static final APIError.Type INSUFFICIENT_CREDENTIALS
public static final APIError.Type INTERNAL_ERROR
public static final APIError.Type NOT_FOUND
public static final APIError.Type PERMISSION_DENIED
public static APIError.Type[] values()
for (APIError.Type c : APIError.Type.values()) System.out.println(c);
public static APIError.Type 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 javax.ws.rs.core.Response.Status getStatus()
Copyright © 2015. All rights reserved.