Errors will be returned in a format containing:
- Error Message ("errorMessage") describing the error
- Unique Error ID ("errorId") that can be used in tandem with logging on the server to track down a more detailed stack trace
- HTTP Error Code ("errorCode") for posterity
- A timestamp of the time the error occurred ("timestamp")
For example, this is an error returned when supplying invalid JSON:
If set, the error will be returned in the content type specified in the
Accept header of the request.
For example, if the request that produced the example above had the
Accept header set to
application/xml (to get the W3C XML representation of JSON), you would have received this:
Accept header is set, it will return in JSON format.