> ## 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.

# DZapTransactionResponse

> The trade() and zap() response shape, for error handling.

The `trade()` response shape:

```typescript theme={null}
type DZapTransactionResponse = {
  status: TxnStatus;
  errorMsg?: string;
  code: StatusCodes | number;
  action?: "TRY_ANOTHER_ROUTE" | "INCREASE_SLIPPAGE" | "INCREASE_ALLOWANCE";
  txnHash?: HexString;
  error?: unknown;
  additionalInfo?: Record<string, unknown>;
  updatedQuotes?: Record<string, string>;
};
```

Always check `status === TxnStatus.success` before using `txnHash`. Use `errorMsg` for user-facing messages.

## Next steps

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