Errors

From Social ID Developers
Revision as of 15:13, 5 May 2015 by Gabriel.prado (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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 contain 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.
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox