"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const statusToErrCode_1 = require("./statusToErrCode");
class CustomError extends Error {
    constructor(code, message) {
        super(message);
        this.code = statusToErrCode_1.statusToErrCode[code] || code;
    }
}
exports.default = CustomError;
//# sourceMappingURL=index.js.map