radio/magnus/middleware/notFound.js

7 lines
163 B
JavaScript
Raw Permalink Normal View History

2018-08-04 21:46:25 +00:00
"use strict";
var HttpError = require("../lib/httpError");
module.exports = function(req, res, next) {
return next(new HttpError(404, 'Page not found!'));
};