title: express.js global try/catch
body: <p>I'm developing a rest server on Node JS with Express.</p>
  
  <p>I'm trying to wrap all my endpoints in try\catch block, so a central point of error will response back to the sender with details.
  My problem that response (res instance) is alive for each of the endpoints methods, but I don't know how to make it global.</p>
  
  <pre><code>try {
      app.get('/webhook', function (req, res) {
          webhook.register(req, res);
      });
  
      app.get('/send', function (req, res) {
          sendAutoMessage('1004426036330995');
      });
  
      app.post('/webhook/subscribe', function (req, res) {
          webhook.subscribe("test");
      });
  
      app.post('/webhook/unsubscribe', function (req, res) {
          webhook.unsubscribe("test");
      });
  } catch (error) {
      //response to user with 403 error and details
  }
  </code></pre>