Errors

The Anchorage Digital API returns standard HTTP error codes for each API request.

Response CodeDescription
200 OKThe request was successful.
400 Bad RequestThe 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 UnauthorizedThe request was missing a valid API key.
403 ForbiddenThe provided API key does not have permission to perform the requested action.
404 Not FoundThe requested resource does not exist.
409 ConflictThe requested resource cannot proceed with the requested action because it is not in the required state.
429 Too Many RequestsToo 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.

FieldDescription
errorType
  • string_ (ErrorType)
    Enum: "InternalError" "InvalidRequest" "Unauthenticated" "Forbidden" "NotFound" "Conflict" "UnprocessableEntity" "TooManyRequests" "ServiceUnavailable" "QuoteExpired" "InsufficientFunds" "NotImplemented"
    The type of error returned.
messagestring
A human-readable message providing more details about the error.