Error Responses
Authentication Error
When the client gets an error when acquiring access token or refreshing the access token, the error response follows RFC 6749 (https://tools.ietf.org/html/rfc6749) on The OAuth 2.0 Authorization Framework.
Here is an example of an error message when failed to request access token
{
"error": "invalid_grant",
"error_description": "The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client."
}
Regular Error
Our APIs use the following response codes
- 200 - Success
- 401 - Unauthorised
- 422 - Unprocessable Entity
- 429 - Too Many Requests