UNPKG

@unkey/api

Version:

Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@unkey/api* API.

20 lines 703 B
"use strict"; /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.UnkeyError = void 0; /** The base class for all HTTP error responses */ class UnkeyError extends Error { constructor(message, httpMeta) { super(message); this.statusCode = httpMeta.response.status; this.body = httpMeta.body; this.headers = httpMeta.response.headers; this.contentType = httpMeta.response.headers.get("content-type") || ""; this.rawResponse = httpMeta.response; this.name = "UnkeyError"; } } exports.UnkeyError = UnkeyError; //# sourceMappingURL=unkeyerror.js.map