@jrosadob/ms-custom
Version:
ms-custom
15 lines • 574 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MethodNotAllowedException = void 0;
const common_1 = require("@nestjs/common");
class MethodNotAllowedException extends common_1.HttpException {
constructor(message) {
super({
status: common_1.HttpStatus.METHOD_NOT_ALLOWED,
error: 'Method Not Allowed',
message,
}, common_1.HttpStatus.METHOD_NOT_ALLOWED);
}
}
exports.MethodNotAllowedException = MethodNotAllowedException;
//# sourceMappingURL=method-not-allowed.exception.js.map