public interface HttpErrorCodeProvider
Modifier and Type | Field and Description |
---|---|
static int |
ERROR_CODE_CONFLICT
Constant holding a HTTP error code of a 'conflict'; it is used when a duplicate insert appears.
|
static int |
ERROR_CODE_INTERNAL_ERROR
Constant holding a HTTP error code of internal error (default error code).
|
static int |
ERROR_CODE_NOT_FOUND
Constant holding a HTTP error code of 'Not found'.
|
static int |
ERROR_CODE_NOT_SET
Constant holding information that the HTTP error code was not set.
|
Modifier and Type | Method and Description |
---|---|
int |
getHttpErrorCode()
Returns a HTTP error code to be returned to the HTTP client.
|
boolean |
isHttpErrorCodeSet()
Returns true, if the HTTP code was set, false otherwise.
|
static final int ERROR_CODE_NOT_SET
static final int ERROR_CODE_INTERNAL_ERROR
static final int ERROR_CODE_CONFLICT
static final int ERROR_CODE_NOT_FOUND
boolean isHttpErrorCodeSet()
int getHttpErrorCode()