code: function error404(req, res, templateDir) {
    sendPage(res, 404, 'Page not found', {
      template: 'error-404',
      templateDir: templateDir,
      vars: {
        message: "Sorry, but the page you requested doesn't exist."
      }
    });
  }
docs: Send a 404 error response