Skip to content

@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 ​

ParameterType
args{ status: number; requestId: ZrRequestId; problem?: object & object; retryAfterMs?: number; }
args.statusnumber
args.requestIdZrRequestId
args.problem?object & object
args.retryAfterMs?number

Returns ​

ZrExpressApiError

Released under the MIT License. Not affiliated with ZR Express.