- style
Status Codes
Interpreting API response status codes
Accelo's API does not want to overcomplicate things with dozens of status codes. If you are ever confused by a status code, have a read of the meta data's message
field or X-Status-Reason
header value of the response. If you do not see a message value in the response meta object, ensure you are not suppressing it with _suppress_message=yes
.
Title | Code | Description |
---|---|---|
invalid_client | 401 | Invalid Client Authentication. e.g., unknown client, no client authentication included, or unsupported authentication method. Common Causes:
|
invalid_grant | 400 | The provided authorization grant is invalid. Common Causes:
|
ok | 200 | Everything executed as expected. |
duplicate | 400 | Your write actions would cause a duplicate unique identifier. The response message should identify the offending field. If it does not, please report it to us. Common Causes:
|
invalid_request | 400 | We could not interpret your request. This is commonly seen when you forget to include required parameters or attempt to request a resource that doesn't exist. For example, /public_api/v0/monkeys or public_api/v2000/companies would result in a 'invalid_request'. Common Causes:
|
server_error | 500 | The request failed due to a server error and we were notified. Unfortunately these errors are 99% of the time out of your control. If you continue to see such an error, please notify us. Common Causes:
|
invalid_scope | 400 | The requested scope is invalid, unknown, malformed, or exceeds the scope granted by the resource owner. Common Causes:
The scope specification can be found under the app type specific authentication pages on Authentication. |
unsupported_grant_type | 400 | The authorization grant type is not supported by the authorization server. Common Causes:
If you continue to have issues, please see Authentication. |
unauthorized_client | 401 | The authenticated client is not authorized to use this authorization grant type. Common Causes:
|
invalid_permission | 403 | The user is authenticated but does not have permission to perform the action. |
Suppressing meta data
_suppress_meta=yes
. The status reason will then be found in the X-Status-Reason
header and no status will be returned within the response body.