res.notFound = function() {
    res.status(404).json({
      name: 'not_found',
      message: 'The requested resource cannot be found.'
    });