> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dzap.io/llms.txt
> Use this file to discover all available pages before exploring further.

# contractErrorActions

> Trade failure action codes.

When a trade fails, the response may include `action` with one of:

```typescript theme={null}
// From SDK types (contractErrorActions)
"TRY_ANOTHER_ROUTE";   // Retry with bestReturnSource
"INCREASE_SLIPPAGE";   // User should increase slippage
"INCREASE_ALLOWANCE";  // Allowance issue
```

Handle `TRY_ANOTHER_ROUTE` by rebuilding the trade request with `protocol: bestReturnSource` and calling `trade()` again.

## Next steps

* [Trade failure actions](/sdk/reference/errors/trade-failure-actions)
* [Execute trade](/sdk/trade/execute-trade)
