/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: e2280e075454
 */
export class APIError extends Error {
    httpMeta;
    constructor(message, httpMeta) {
        super(`${message}: Status ${httpMeta.response.status} Content-Type ${httpMeta.response.headers.get("content-type") || ""} Body: ${httpMeta.body}`);
        this.httpMeta = httpMeta;
        this.name = "APIError";
    }
}
//# sourceMappingURL=apierror.js.map