# Errors

HTTP status codes do not always provide sufficient information about the cause of an error. For more detailed programmatic handling of errors, responses contain additional JSON fields that describe the error.

### Error format

Whenever an API request results in an error, the response will contain a high-level error class specified by the `code` and a human-readable summary in the `message`.

```json
{
"code": XXXX,
"message":"Invalid wallet address."
}
```

### List of API Error Codes

The table below shows the list of error codes that may be returned in an API error response.

<table><thead><tr><th width="118">Code</th><th width="533">Message</th><th data-hidden>Description</th></tr></thead><tbody><tr><td>0001</td><td>Unknown Error</td><td></td></tr><tr><td>5001</td><td>Additional parameters required to initiate payout</td><td></td></tr><tr><td>5002</td><td>Invalid rate</td><td></td></tr><tr><td>5003</td><td>Rate already used</td><td></td></tr><tr><td>5023</td><td>Invalid wallet address</td><td></td></tr><tr><td>5004</td><td>Insufficient funds</td><td></td></tr><tr><td>5045</td><td>Invalid payout type</td><td></td></tr><tr><td>5005</td><td>Payout type not supported</td><td></td></tr><tr><td>5100</td><td>Additional query parameters required to generate rates</td><td></td></tr><tr><td>5199</td><td>Unsupported token</td><td></td></tr><tr><td>5200</td><td>Unsupported Country</td><td></td></tr><tr><td>5299</td><td>Unsupported currency</td><td></td></tr><tr><td>5050</td><td>Additional query parameters required to get banks</td><td></td></tr><tr><td>5059</td><td>Invalid country code</td><td></td></tr><tr><td>5099</td><td>Invalid currency code</td><td></td></tr><tr><td>5159</td><td>Invalid transaction id</td><td></td></tr><tr><td>5189</td><td>Additional recipient details needed</td><td></td></tr><tr><td>5999</td><td>Additional sender details needed</td><td></td></tr><tr><td>5190</td><td>Invalid NUBAN</td><td></td></tr><tr><td>5191</td><td>Invalid wire routing number</td><td></td></tr><tr><td>5192</td><td>Invalid IBAN</td><td></td></tr><tr><td>5193</td><td>IBAN country mismatch</td><td></td></tr><tr><td>5195</td><td>Invalid bank account number</td><td></td></tr><tr><td>5196</td><td>Invalid bank code</td><td></td></tr></tbody></table>

###
