Error handling ctrl.get('/puppies', function (req, res) { try { // Exception is thrown here throw e; } }// The "error" method merely documents the meaning.error(400, 'Thrown if there are too many puppies.');