lib/handlers/error.js
function (req, res) {
    var error = new errors.NotFound('Page Does Not Exist');
    if (req.accepts('html') && (req.url.indexOf('/api/') !== 0)) {
      this.renderErrorPage('404', error, req, res);
    } else {
      this.renderError(error, req, res);
    }
  }
function (req, res) {
    var error = new errors.NotFound('Page Does Not Exist');
    if (req.accepts('html') && (req.url.indexOf('/api/') !== 0)) {
      this.renderErrorPage('404', error, req, res);
    } else {
      this.renderError(error, req, res);
    }
  }
function ( req , res ) { var error = new errors . NotFound ( 'Page Does Not Exist' ) ; if ( req . accepts ( 'html' ) && ( req . url . indexOf ( '/api/' ) !== 0 ) ) { this . renderErrorPage ( '404' , error , req , res ) ; } else { this . renderError ( error , req , res ) ; } }
Fall through handler for when no routes match.
Fall through handler for when no routes match .