/**
 * Error message returned by the Synapse backend joined with the
 * HTTP status code.
 */
export class SynapseClientError extends Error {
    status;
    reason;
    errorResponse;
    url;
    constructor(status, reason, url, errorResponse) {
        super(reason);
        this.status = status;
        this.reason = reason;
        this.url = url;
        this.errorResponse = errorResponse;
        // See https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-2.html#support-for-newtarget
        Object.setPrototypeOf(this, new.target.prototype);
    }
}
//# sourceMappingURL=SynapseClientError.js.map