code: function notFound(value) {
    return function(ctx, next) {
      if (ctx.res && ctx.res.statusCode === 404) {
        var err = new Error(value + ' not found');
        err.notFound = true;
  
        return next(err);
      }
  
      next();
    };
  }
docs: Not found