UNPKG

@mvx/mvc

Version:

@mvx/mvc is mvc framework on server, base on koa, @tsdi frameworks

27 lines (25 loc) 886 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MethodNotAllowedError = void 0; var tslib_1 = require("tslib"); var HttpError_1 = require("./HttpError"); /** * method not allowed error. * * @export * @class MethodNotAllowedError * @extends {HttpError} */ var MethodNotAllowedError = /** @class */ (function (_super) { tslib_1.__extends(MethodNotAllowedError, _super); function MethodNotAllowedError(message) { if (message === void 0) { message = 'Method Not Allowed'; } return _super.call(this, 405, message) || this; } MethodNotAllowedErrorAnn = function () { return { "name": "MethodNotAllowedError" }; }; return MethodNotAllowedError; }(HttpError_1.HttpError)); exports.MethodNotAllowedError = MethodNotAllowedError; //# sourceMappingURL=../sourcemaps/errors/MethodNotAllowedError.js.map