Skip to content
Niu DocsNiu 牛元文档
Dashboard控制台

NiuAPIError

Generated from the checked-in source. Do not edit this reference by hand.

SDK source. All SDK types.

TypeScript
constructor(status: number, responseBody: unknown, requestId?: string, attemptId?: string, operationId?: string, gatewayCode?: string, retryAfter?: string);
TypeScript
readonly status: number;
TypeScript
readonly requestId?: string;
TypeScript
readonly attemptId?: string;
TypeScript
readonly operationId?: string;
TypeScript
readonly responseBody: unknown;
TypeScript
/** Niu-specific reason when the operation supplies x-niu-error-code. */
readonly gatewayCode?: string;
TypeScript
/** Raw Retry-After value, when supplied. Absence is not permission to retry. */
readonly retryAfter?: string;
TypeScript
static fromResponse(response: Response, payload: unknown): NiuAPIError;