Spaces:
Sleeping
Sleeping
File size: 597 Bytes
08b4888 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | import type { JsonObject } from "./vendor/type-fest/basic";
export declare function createApiError(response: Response, opts?: {
requestId?: string;
message?: string;
}): Promise<never>;
/**
* Error thrown when an API call to the Hugging Face Hub fails.
*/
export declare class HubApiError extends Error {
statusCode: number;
url: string;
requestId?: string;
data?: JsonObject;
constructor(url: string, statusCode: number, requestId?: string, message?: string);
}
export declare class InvalidApiResponseFormatError extends Error {
}
//# sourceMappingURL=error.d.ts.map |