Hi Andrea,
Currently we are sending the error response as per following schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error",
"description": "Error response structure",
"properties": {
"code": {
"id": "/properties/code",
"type": "integer"
},
"description": {
"id": "/properties/description",
"type": "String"
},
"infoURL": {
"id": "/properties/infoURL",
"type": "String"
},
"message": {
"id": "/properties/message",
"type": "string"
}
},
"type": "object"
}
We have defined application level error code and messages which are set in the error object. The HTTP status codes are set as per standard.
Below is java code snippet.
Response.status(Response.Status.BAD_REQUEST).entity(error).build();
------------------------------
Vishal Srivastava
SOPRA STERIA GROUP INDIA
------------------------------