Error Syntax
Unsuccessful API requests will receive HTTP response with standard HTTP status code (see below) along with a JSON formatted description of the error in the response body.
The error response JSON body has the form:
{
"error": {
"message": "A friendly message describing the error",
"code": "A code that identifies the error error type"
}
}
message
is a brief description of what went wrong.
code
is a shortcode used to reliably identify errors.
Updated almost 2 years ago