hapic
Version:
A http api client based on axios.
15 lines (14 loc) • 534 B
TypeScript
import { BaseError } from 'ebec';
import type { RequestOptions } from '../request';
import type { Response } from '../response';
import type { ClientErrorContext } from './type';
export declare class ClientError<T = any> extends BaseError {
readonly '@instanceof': symbol;
readonly request: RequestOptions;
readonly response?: Response<T>;
readonly status?: number;
readonly statusCode?: number;
readonly statusMessage?: string;
readonly statusText?: string;
constructor(ctx: ClientErrorContext<T>);
}