UNPKG

402 BTypeScriptView Raw
1import type { NormalizedOptions } from '../types/options.js';
2import type { KyRequest } from '../types/request.js';
3import type { KyResponse } from '../types/response.js';
4export declare class HTTPError<T = unknown> extends Error {
5 response: KyResponse<T>;
6 request: KyRequest;
7 options: NormalizedOptions;
8 constructor(response: Response, request: Request, options: NormalizedOptions);
9}