The server returns different formats for error codes and messages according to different "Accept" values in request headers.
Type and Format | Accept Header Values | Sample Response Body |
---|---|---|
XML | application/xml, application/xhtml+xml, application/atom+xml | <html><head><title>"message string"</title</head><body><h1>"error code" - "error string".</h1>"<p><b>message string</b> <u>error string</u></p><p><b>description</b> <u>error message</u></p><h3>"text string"</h3></body></html> |
JSON | application/json, text/json | { "error": {"code": "403", "message": {"lang": "en-US", "value": "some specific error text string" } } } |
TEXT | text/html, text/plain | "some specific error text string" |