Errors
(Difference between revisions)
(Created page with "In the case of errors in the request, an error code will be set properly. The response status will be set to the respective HTTP status code and the body may contain a JSON va...") |
(→HTTP Status Codes) |
||
Line 5: | Line 5: | ||
== HTTP Status Codes == | == HTTP Status Codes == | ||
− | The following table | + | The following table contains the main codes and their simple descriptions. See specific API documentations for more detailed information. |
{| | {| |
Revision as of 15:14, 5 May 2015
In the case of errors in the request, an error code will be set properly. The response status will be set to the respective HTTP status code and the body may contain a JSON value with more information concerning the error.
The status codes and JSON structure are described below. However, some APIs may differ slightly. In such case, refer to the specific API documentation for further information.
HTTP Status Codes
The following table contains the main codes and their simple descriptions. See specific API documentations for more detailed information.
Code | Status | Description |
---|---|---|
400 | bad_request | Some required parameter was not informed. |
401 | unauthorized | The authentication is wrong. See Authentication. |
403 | forbidden | The request wan not accepted due to semantic permission errors. |
404 | not_found | Some resource was not found. |
406 | not_acceptable | The requested format is not accepted. Make sure the "Content-Type" header is set correctly. |
409 | conflict | A semantic conflict happened. |
422 | unprocessable_entity | A validation error occurred. |
500 | internal_server_error | An unknown error happened. |