error-routes.js 195 Bytes RawBlameHistoryPermalink 1 2 3 4 5 6 7 8 9 10 module.exports = function () { return function (ctx, next) { switch (ctx.status) { case 404: ctx.body = '没有找到内容 - 404' break } return next() } }