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