/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: b088cc36866a
 */
/** The base class for all HTTP error responses */
export class MistralError extends Error {
    /** HTTP status code */
    statusCode;
    /** HTTP body */
    body;
    /** HTTP headers */
    headers;
    /** HTTP content type */
    contentType;
    /** Raw response */
    rawResponse;
    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 = "MistralError";
    }
}
//# sourceMappingURL=mistralerror.js.map