404 errors?
Errors are already addressed in Express for you. In the app.js file, there is the following:
/// catch 404 and forwarding to error handlerapp.use(function(req, res, next) {var err = new Error('Not Found');err.status = 404;next(err);});
Then in the views/ dir, there is errors.jade.
extends layoutblock contenth1= messageh2= error.statuspre #{error.stack}
Simple. If you want to customize your 404 page, simply edit this view.
