Skip to main content

Error Response Format

All API errors return a JSON object with the following structure:
{
  "name": "Error",
  "message": "Error message",
  "code": 500
}
FieldDescription
nameAlways "Error"
messageHuman-readable error description
codeHTTP status code (400, 500, etc.)
Use the message field to understand the specific error. The code field reflects the HTTP status code.

Common Errors

Token & Address Errors

MessageSolution
Unsupported from TokenCheck /tokens?hasCex=true or /tokens?hasDex=true for supported tokens
Unsupported to TokenCheck /tokens?hasCex=true or /tokens?hasDex=true for supported tokens
addressTo is invalidValidate using addressValidation regex from /chains
addressFrom is invalidValidate using addressValidation regex from /chains
to and from cannot be both the same tokenFrom and To tokens only able to be the same token if private
Token not foundToken ID/symbol doesn’t exist
Network not foundCheck /chains for supported networks
Address is not valid for this chainValidate using addressValidation regex from /chains

Quote & Amount Errors

MessageSolution
Invalid QuoteQuote expired or invalid, request a new one
Path is invalidRoute not available, try different pair
amount is out of bounds for swapCheck min and max from quote response
Unable to perform exchange, quote over X USDReduce swap amount
Amount is too low, minimum is X USDIncrease swap amount
Could not retrieve price quotesTry different amount or pair. For Private mode, try Standard

Order Errors

MessageSolution
Order not foundVerify houdiniId is correct
Swap not foundSwap ID doesn’t exist

Exchange & Routing Errors

MessageSolution
Unable to perform exchange, no available pathsTry different pair or amount
Unable to perform exchange, no available paths. Tip: try toggling OFF Exact modeDisable fixed/exact mode
Unable to generate swap_hop_1 (anon)Private routing failed - try Standard swap
Unable to generate swap_hop_2 (anon)Private routing failed - try Standard swap

Authentication & Account Errors

MessageSolution
Please define your API keyAdd Authorization header
Incorrect credentialsVerify API key and secret

Service Errors

MessageSolution
Something went wrong. Please contact support!Retry or contact support
Your request has timed-outRetry the request
Services temporary unavailableWait and retry
Anonymous exchanges are temporarily disabledUse Standard swap or contact support

DEX-Specific Errors

MessageSolution
This chain is currently not supportedCheck /tokens?hasDex=true for supported chains
Swap not supportedPair not available for DEX swap

HTTP Status Codes

StatusMeaningCommon Causes
400Bad RequestInvalid parameters, malformed JSON
401UnauthorizedMissing or invalid API credentials
403ForbiddenAPI key lacks permissions
404Not FoundResource doesn’t exist
429Too Many RequestsRate limit exceeded
500Internal Server ErrorServer-side issue
503Service UnavailableMaintenance or partner downtime

Need Help?