public static enum Error.Code extends Enum<Error.Code>
Enum Constant and Description |
---|
AUTHENTICATION_FAILED
Forbidden (403)
The server failed to authenticate the request.
|
BAD_REQUEST
Bad Request (400)
A parameter was incorrect.
|
CONFLICT_ERROR
Conflict (409)
A conflict occurred to prevent the operation from completing.
|
INTERNAL_ERROR
Internal Server Error (500)
The server encountered an internal error.
|
INVALID_HTTP_VERB
Bad Request (400)
The HTTP verb specified was not recognized by the server or isn’t valid for this resource.
|
INVALID_XML_REQUEST
Bad Request (400)
The request body’s XML was invalid or not correctly specified.
|
MISSING_OR_INCORRECT_VERSION_HEADER
Bad Request (400)
The versioning header is not specified or was specified incorrectly.
|
MISSING_OR_INVALID_REQUIRED_QUERY_PARAMETER
Bad Request (400)
A required query parameter was not specified for this request or was specified incorrectly.
|
OPERATION_TIMED_OUT
Internal Server Error (500)
The operation could not be completed within the permitted time.
|
RESOURCE_NOT_FOUND
Not Found (404)
The specified resource does not exist.
|
SERVER_BUSY
Service Unavailable (503)
The server (or an internal component) is currently unavailable to receive requests.
|
SUBSCRIPTION_DISABLED
Forbidden (403)
The subscription is in a disabled state.
|
UNRECOGNIZED |
Modifier and Type | Method and Description |
---|---|
static Error.Code |
fromValue(String code) |
String |
toString() |
String |
value() |
static Error.Code |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Error.Code[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Error.Code MISSING_OR_INCORRECT_VERSION_HEADER
public static final Error.Code INVALID_XML_REQUEST
public static final Error.Code MISSING_OR_INVALID_REQUIRED_QUERY_PARAMETER
public static final Error.Code INVALID_HTTP_VERB
public static final Error.Code AUTHENTICATION_FAILED
public static final Error.Code RESOURCE_NOT_FOUND
public static final Error.Code INTERNAL_ERROR
public static final Error.Code OPERATION_TIMED_OUT
public static final Error.Code SERVER_BUSY
public static final Error.Code SUBSCRIPTION_DISABLED
public static final Error.Code BAD_REQUEST
public static final Error.Code CONFLICT_ERROR
public static final Error.Code UNRECOGNIZED
public static Error.Code[] values()
for (Error.Code c : Error.Code.values()) System.out.println(c);
public static Error.Code 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 String value()
public String toString()
toString
in class Enum<Error.Code>
public static Error.Code fromValue(String code)
Copyright © 2009-2013 jclouds. All Rights Reserved.