@terminaldz/zrexpress-sdk / index / mapApiError
Function: mapApiError()
ts
function mapApiError(args): ZrExpressApiError;Defined in: errors.ts:107
Map a non-2xx response to the taxonomy. Auth failures have empty bodies (API_REFERENCE §9.1) so problem is optional everywhere.
Parameters
| Parameter | Type |
|---|---|
args | { status: number; requestId: ZrRequestId; problem?: object & object; retryAfterMs?: number; } |
args.status | number |
args.requestId | ZrRequestId |
args.problem? | object & object |
args.retryAfterMs? | number |