@coolio/http
Version:
HTTP networking client
11 lines (10 loc) • 470 B
TypeScript
import { HttpResponse } from './httpClient.types';
import { HttpCode } from './httpCodes';
export declare class HttpResponseError<T = any> extends Error {
readonly response: HttpResponse<T>;
readonly status: HttpCode;
private readonly __symbol;
constructor(response: HttpResponse<T>, message?: string);
}
export declare const isHttpResponseError: (error: any) => error is HttpResponseError<any>;
//# sourceMappingURL=httpResponseError.d.ts.map