@jrosadob/ms-custom
Version:
ms-custom
15 lines • 534 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.UnauthorizedException = void 0;
const common_1 = require("@nestjs/common");
class UnauthorizedException extends common_1.HttpException {
constructor(message) {
super({
status: common_1.HttpStatus.UNAUTHORIZED,
error: 'Unauthorized',
message,
}, common_1.HttpStatus.UNAUTHORIZED);
}
}
exports.UnauthorizedException = UnauthorizedException;
//# sourceMappingURL=unauthorized.exception.js.map