mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
12 lines
615 B
JavaScript
12 lines
615 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const http_exception_1 = require("./http.exception");
|
|
const http_status_enum_1 = require("../enums/http-status.enum");
|
|
const http_exception_body_util_1 = require("./../utils/http-exception-body.util");
|
|
class ForbiddenException extends http_exception_1.HttpException {
|
|
constructor(message, error = 'Forbidden') {
|
|
super(http_exception_body_util_1.createHttpExceptionBody(message, error, http_status_enum_1.HttpStatus.FORBIDDEN), http_status_enum_1.HttpStatus.FORBIDDEN);
|
|
}
|
|
}
|
|
exports.ForbiddenException = ForbiddenException;
|