When an error occurs you will receive a response from the server in a JSON format.
Here is an example below:
JSON Error Response:
"message": "Invalid API key"
Different Error Types
|400 (Bad Request)
Any case where a parameter is invalid, or a required parameter is missing.
The requested information cannot be viewed by the acting user, for example, because they
are not friends with the user whose data they are trying to read.
|404 (Not Found)
Endpoint does not exist.
|405 (Method Not Allowed)
Attempting to use POST with a GET-only endpoint, or vice-versa.
|500 (Internal Server Error)
Servers are unhappy. The request is probably valid but needs to be retried later.