api
Version:
Magical SDK generation from an OpenAPI definition 🪄
13 lines (12 loc) • 399 B
TypeScript
declare class FetchError<Status = number, Data = unknown> extends Error {
/** HTTP Status */
status: Status;
/** The content of the response. */
data: Data;
/** The Headers of the response. */
headers: Headers;
/** The raw `Response` object. */
res: Response;
constructor(status: Status, data: Data, headers: Headers, res: Response);
}
export default FetchError;