public interface ErrorResponse
Modifier and Type | Interface and Description |
---|---|
static class |
ErrorResponse.ErrorResponseException
Base class to build a
RuntimeException with ErrorResponse support. |
Modifier and Type | Field and Description |
---|---|
static String |
ERROR_CODE_SERIALIZATION_NAME
Default serialization name for error code
|
static String |
ERROR_DESCRIPTION_SERIALIZATION_NAME
Default serialization name for error description
|
static String |
ERROR_URI_SERIALIZATION_NAME
Default serialization name for error URI
|
static String |
INVALID_CLIENT
Default
invalid_client error code: Client authentication failed (e.g. unknown client, no client
authentication included, or unsupported authentication method). |
static String |
INVALID_REQUEST
Default
invalid_request error code: The request is missing a required parameter, includes an invalid
parameter value, includes a parameter more than once, or is otherwise malformed. |
static String |
INVALID_TOKEN
Default
invalid_token error code: The provided authorization token is not valid (expired, revoked,
malformed, or invalid for other reasons) |
static String |
SERVER_ERROR
Default
server_error error code: Server encountered an unexpected condition that prevented it from
fulfilling the request. |
static String |
TEMPORARY_UNAVAILABLE
Default
temporarily_unavailable error code: Server is currently unable to handle the request due to
a temporary overloading or maintenance of the server. |
Modifier and Type | Method and Description |
---|---|
String |
getErrorCode()
Error code.
|
String |
getErrorDescription()
Error description, i.e. a human-readable explanation of this error
|
String |
getErrorURI()
Optional error URI that leads to further details about this error
|
int |
getHttpStatus()
Optional HTTP status code to represent error as a HTTP response
|
static final String SERVER_ERROR
server_error
error code: Server encountered an unexpected condition that prevented it from
fulfilling the request.static final String TEMPORARY_UNAVAILABLE
temporarily_unavailable
error code: Server is currently unable to handle the request due to
a temporary overloading or maintenance of the server.static final String INVALID_REQUEST
invalid_request
error code: The request is missing a required parameter, includes an invalid
parameter value, includes a parameter more than once, or is otherwise malformed.static final String INVALID_CLIENT
invalid_client
error code: Client authentication failed (e.g. unknown client, no client
authentication included, or unsupported authentication method).static final String INVALID_TOKEN
invalid_token
error code: The provided authorization token is not valid (expired, revoked,
malformed, or invalid for other reasons)static final String ERROR_CODE_SERIALIZATION_NAME
static final String ERROR_DESCRIPTION_SERIALIZATION_NAME
static final String ERROR_URI_SERIALIZATION_NAME
String getErrorCode()
String getErrorDescription()
String getErrorURI()
int getHttpStatus()
-1
means unknownCopyright © 2019 The Holon Platform. All rights reserved.