title: nodejs how to send error response automatically if anything fails
body: <p>In Nodejs, for every api i am using try/catch block, if everything works i return the response with 200 and in catch block i need to use the <code>res.status(500).send()</code></p>
  <p>is there any way i can avoid using <code>try/catch</code> like if anything fails, some middleware or anything can catch the error and send the error response to user.</p>
  <p>Like in NestJS you just simply use the return response, no need to even use <code>res.send</code> to send the response, if there is error it automatically send the 500 response</p>