Standard Error Response
The LumisXP REST framework by default, when an exception is thrown by the executed REST operation, generates a response using lumis.portal.rest.util.ErrorEntity. The implementation of REST operations can also use this class directly to generate a response.
This standard error response may contain the following information in the body of the response:
Property | Description | Type |
---|---|---|
error.statusCode | Numeric value representing the type of error that occurred. | number |
error.message | Descriptive message about the error that occurred. | string |
Example of response in JSON:
{
"error":
{
"statusCode": 403,
"message": "Access Denied"
}
}
Example of response in XML:
<error>
<statusCode>403</statusCode>
<message>Access Denied</message>
</error>