Error Handling

Error response format and complete error codes reference

Error Handling

The API uses a consistent error response format across all endpoints.

Error Response Format

All errors follow this structure:

{
  "errorCode": 2001,
  "errorLabel": "UNSUPPORTED_TICKER",
  "errorDescription": "Ticker XYZ is not supported",
  "errors": {
    "ticker": ["Unsupported ticker value"]
  }
}
FieldTypeDescription
errorCodenumberNumeric error code (see table below)
errorLabelstringMachine-readable error label
errorDescriptionstringHuman-readable error description
errorsobject(optional) Field-level validation errors. Keys are field names, values are arrays of error messages.

Error Codes

Validation Errors (1xxx)

CodeLabelDescription
1001INVALID_TIMESTAMPThe provided timestamp is invalid or expired
1002BAD_RECV_WINDOWThe receive window parameter is out of range

Business Logic Errors (2xxx)

CodeLabelDescription
2001UNSUPPORTED_TICKERThe specified ticker is not supported
2002AMOUNT_TOO_SMALLThe amount is below the minimum threshold
2003INVALID_SIDEInvalid conversion side parameter
2004INSUFFICIENT_FUNDSInsufficient balance to complete the operation
2005PAIR_NOT_SUPPORTEDThe trading pair is not available
2006INVALID_UUIDThe provided UUID is malformed
2007CONVERT_WRONG_STATUSThe conversion is in a state that does not allow this action
2008RATE_NOT_FOUNDNo rate available for the requested pair
2009PRODUCT_NOT_AVAILABLEThe requested product is not available for this account

Service Errors (3xxx)

CodeLabelDescription
3001CONVERT_ERRORInternal error in the conversion service
3101WALLET_ERRORInternal error in the wallet service

System Errors (9xxx)

CodeLabelDescription
9001UNAUTHORIZEDAuthentication failed
9002FORBIDDENAccess denied
9003SERVICE_UNAVAILABLEA backend service is temporarily unavailable
9004TOO_MANY_REQUESTSRate limit exceeded
9005INTERNAL_SERVER_ERRORUnexpected server error
9006MISSING_API_KEYThe x-apikey header is missing
9007INVALID_API_KEYThe API key is invalid or revoked
9008MISSING_SIGNATURERequest signature is missing
9009INVALID_SIGNATURERequest signature is invalid
9012INVALID_IPRequest IP address is not in the API key's allowlist
9010NOT_FOUNDThe requested resource was not found
9011BAD_REQUESTThe request is malformed or contains invalid parameters
9013KYC_NOT_VERIFIEDKYC verification not completed
9014API_NOT_AVAILABLEAPI access is not available for this account

HTTP Status Codes

HTTP StatusMeaning
200Success
400Bad Request — validation or business logic error
401Unauthorized — authentication failure
403Forbidden — insufficient permissions
404Not Found — resource does not exist
429Too Many Requests — rate limit exceeded
500Internal Server Error
503Service Unavailable — backend service is down