redis-smq-rest-api
Version:
A RESTful API for RedisSMQ
11 lines • 451 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getErrorResponseParams = getErrorResponseParams;
const errors_js_1 = require("./errors.js");
function getErrorResponseParams(error) {
var _a;
const className = error.name;
const errs = errors_js_1.errors;
return (_a = errs[className]) !== null && _a !== void 0 ? _a : [500, 'InternalServerError'];
}
//# sourceMappingURL=getErrorResponseParams.js.map