code: function handleError(err, req, res) {
      switch (err.name) {
        case 'NotFoundError':
          res.send(err, 404);
          break;
        default:
          res.send(err, 500);
      }
    }
docs: Utility for handling errors