Response body
On failure, we return an HTTP code >= 400, which will contain the following fields.
status | HTTP Status code. See HTTP Responses |
code | A string indicating the kind of error. See Error Codes below |
message | Human readable description of the error |
helpUrl | A link for having more information about the error |
Error codes
The API may send the following error codes for known errors. We try to make the error code as meaningful as possible, but we provide more description there. We will keep adding error codes in the future.
Type | Description |
---|---|
AUTHORIZATION_CLIENT_NOT_FOUND |
The |
AUTHORIZATION_CLIENT_SECRET_DOES_NOT_MATCH |
The |
AUTHORIZATION_REDIRECT_URI_DOES_NOT_MATCH |
The |
AUTHORIZATION_REQUESTED_SCOPE_NOT_AVAILABLE |
One of the scopes provided as query parameter is invalid. See Scopes for a list of supported scopes. |
AUTHORIZATION_REQUESTED_SCOPE_NOT_AUTHORIZED |
One of the scopes provided as query parameter is invalid. You can only request scopes that have been authorized during your registration. If you want to request a new scope, you need to contact Shine customer support. |
AUTHORIZATION_REQUESTED_SCOPE_MISSING_OPENID |
When you request the |
AUTHORIZATION_CLIENT_STATUS_NOT_VALID |
Your account has not been validated yet or has been deactivated. |
AUTHORIZATION_CODE_MISSING |
The |
AUTHORIZATION_CODE_NOT_FOUND |
The |
AUTHORIZATION_CODE_ALREADY_USED |
Authorization codes can only be used once. |
AUTHORIZATION_CODE_EXPIRED |
Authorization codes expire after one minute. |
AUTHORIZATION_CODE_REDIRECT_URI_DOES_NOT_MATCH |
The |
AUTHORIZATION_ACCESS_TOKEN_EXPIRED |
Access tokens expire after one hour. They can be refreshed using the |
AUTHORIZATION_INVALID_ACCESS_TOKEN |
The The |
AUTHORIZATION_MISSING_ACCESS_TOKEN |
The |
AUTHORIZATION_ACCESS_TOKEN_WRONG_AUDIENCE |
The |
AUTHORIZATION_ACCESS_TOKEN_MISSING_SCOPE |
One of the |
AUTHORIZATION_ACCESS_TOKEN_FORBIDDEN |
The requested resource(s) can't be accessed with this |
AUTHORIZATION_UNSUPPORTED_RESPONSE_TYPE |
The |
AUTHORIZATION_UNSUPPORTED_GRANT_TYPE |
The |
AUTHORIZATION_REFRESH_TOKEN_MISSING |
The |
AUTHORIZATION_REFRESH_TOKEN_EXPIRED |
Refresh tokens expire after one year. Refresh tokens can't be refreshed. To get a new |
AUTHORIZATION_REFRESH_TOKEN_INVALID |
The |
AUTHORIZATION_REFRESH_TOKEN_REDIRECT_URI_DOES_NOT_MATCH |
The |
AUTHORIZATION_REFRESH_TOKEN_REVOKED |
The |
AUTHORIZATION_UNKNOWN_ERROR |
😱 |
AUTHORIZATION_USER_NOT_AUTHORIZED |
The The |