UNPKG

@bitblit/epsilon

Version:

Tiny adapter to simplify building API gateway Lambda APIS

14 lines 548 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UnauthorizedError = void 0; const common_1 = require("@bitblit/ratchet/common"); class UnauthorizedError extends common_1.RestfulApiHttpError { constructor(...errors) { super(...errors); Object.setPrototypeOf(this, UnauthorizedError.prototype); this.withHttpStatusCode(UnauthorizedError.HTTP_CODE); } } exports.UnauthorizedError = UnauthorizedError; UnauthorizedError.HTTP_CODE = 401; //# sourceMappingURL=unauthorized-error.js.map