export class ApiError extends Error {
    status;
    code;
    constructor(status, code, message) {
        super(message);
        this.status = status;
        this.code = code;
    }
    toBody() {
        return { error: { code: this.code, message: this.message } };
    }
}
