@unkey/api
Version:
Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@unkey/api* API.
19 lines • 557 B
TypeScript
/** The base class for all HTTP error responses */
export declare class UnkeyError extends Error {
/** HTTP status code */
readonly statusCode: number;
/** HTTP body */
readonly body: string;
/** HTTP headers */
readonly headers: Headers;
/** HTTP content type */
readonly contentType: string;
/** Raw response */
readonly rawResponse: Response;
constructor(message: string, httpMeta: {
response: Response;
request: Request;
body: string;
});
}
//# sourceMappingURL=unkeyerror.d.ts.map