The Anchorage Digital API returns standard HTTP error codes for each API request.
| Response Code | Description |
|---|---|
| 200 OK | The request was successful. |
| 400 Bad Request | The request was improperly formed and could not be understood by the server, often due to invalid syntax, insufficient funds, or a missing required parameter. |
| 401 Unauthorized | The request was missing a valid API key. |
| 403 Forbidden | The provided API key does not have permission to perform the requested action. |
| 404 Not Found | The requested resource does not exist. |
| 409 Conflict | The requested resource cannot proceed with the requested action because it is not in the required state. |
| 429 Too Many Requests | Too many requests have been sent in a given amount of time. |
| 500 Internal Server Error 502 Bad Gateway 503 Service Unavailable 504 Gateway Timeout | Something went wrong on Anchorage’s side. We have been alerted and are working on it. |
In addition to returning HTTP error codes for failed requests, the Anchorage Digital API includes a readable error message describing what went wrong in the response body.
| Field | Description | |
|---|---|---|
| errorType |
| |
| message | string A human-readable message providing more details about the error. |