/**
 * Custom error class for Upstash API errors
 */
export class UpstashError extends Error {
    /**
     * HTTP status code
     */
    statusCode;
    /**
     * Original response object
     */
    response;
    /**
     * Create a new Upstash error
     *
     * @param message Error message
     * @param statusCode HTTP status code
     * @param response Original response object
     */
    constructor(message, statusCode, response) {
        super(message);
        this.name = "UpstashError";
        this.statusCode = statusCode;
        this.response = response;
    }
}
//# sourceMappingURL=error.js.map