lib/core/render.js
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."
    }
  });
}
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."
    }
  });
}
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." } } ) ; }
Send a 404 error response
Send a 404 error response