REST API Error Response
When a request results in an error, the server returns an HTTP status code (3xx, 4xx; 5xx) that indicates the error type. For instance, if an incorrect verb for an operation is used, the server will respond with a 405 (Method Not Allowed) status code. The details describing the error are returned in the response body. These details can include the failure reason, the operation failure code, and a message describing the failure, for example:
{ "error": { "reason":"<reason for error>", "code":<ILOM failure code (integer)>, "message":"<message describing the failure code>" } }