NiuAPIError
Generated from the checked-in source. Do not edit this reference by hand.
Constructor and members
Section titled “Constructor and members”constructor
Section titled “constructor”constructor(status: number, responseBody: unknown, requestId?: string, attemptId?: string, operationId?: string, gatewayCode?: string, retryAfter?: string);status
Section titled “status”readonly status: number;requestId
Section titled “requestId”readonly requestId?: string;attemptId
Section titled “attemptId”readonly attemptId?: string;operationId
Section titled “operationId”readonly operationId?: string;responseBody
Section titled “responseBody”readonly responseBody: unknown;gatewayCode
Section titled “gatewayCode”/** Niu-specific reason when the operation supplies x-niu-error-code. */readonly gatewayCode?: string;retryAfter
Section titled “retryAfter”/** Raw Retry-After value, when supplied. Absence is not permission to retry. */readonly retryAfter?: string;fromResponse
Section titled “fromResponse”static fromResponse(response: Response, payload: unknown): NiuAPIError;