Interviewer - Server > Architecture > Web Service tier > Interview Web Service > Errors
 
Errors
The Interview Web Service returns appropriate HTTP status codes for API requests (for example, 404 when the URL is invalid). In addition to the HTTP status code, the web service includes error information in the response body. The error response body is formatted in the same manner as the response; it is controlled by the format query parameter or, by default, JSON.
JSON error response format
{ "ErrorCode": "invalid-format-argument" }
Error codes display in lower case with hyphens separating the words. An appropriate HTTP status code is also be used for each error. For more information, see:
http://en.wikipedia.org/wiki/List_of_HTTP_status_codes
Example error codes
no-session-engines-available
all-session-engines-busy
invalid-format-argument
invalid-content-argument
invalid-post-data
See also
Interview Web Service