DeFi API Errors
Each DeFi API error response returns an object with the following parameters.
Error response schema
The error response schema is the same for each API method.
| Name | Type | Description |
|---|---|---|
| code | integer | Error code. |
| type | string | Error type. |
| message | string | Error message. |
Sample error response
{
"code": 400,
"type": "bad_request_error",
"message": "body.from.DirectionByTokenIdFrom.refund_address is required"
}
Error codes
Each API method contains a list of all possible errors in the Error codes section.