Errors
The Soldo Business API uses conventional HTTP response codes to indicate errors, with an error object containing a custom code and message for more detailed information on the error.
Error object
A consistent response is returned in cases where the request couldn't be processed. The error object is made of an error_code, which contains a custom code to identify the error and a message which provides more detailed information on the root cause of the error.
Example:
# HTTP Response Code: 400
{
"error_code": "WALLET_BALANCE_GREATER_THAN_ZERO",
"message": "Unable to delete, wallet has a balance greater than zero. You must transfer all funds to a different wallet before deleting it"
}HTTP codes
Below is a list of standard HTTP response codes returned to the client in cases where the request couldn't be processed.
| HTTP code | Description |
|---|---|
| 400 |
|
| 401 |
|
| 403 |
|
| 404 |
|
| 405 |
|
| 429 |
|
| 500 |
|
