UNPKG

@foxify/http

Version:
15 lines 646 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const http_1 = require("http"); const constants_1 = require("../constants"); const HttpError_1 = __importDefault(require("./HttpError")); class MethodNotAllowed extends HttpError_1.default { constructor(message = http_1.STATUS_CODES[constants_1.STATUS.METHOD_NOT_ALLOWED]) { super(message, constants_1.STATUS.METHOD_NOT_ALLOWED); } } exports.default = MethodNotAllowed; //# sourceMappingURL=MethodNotAllowed.js.map