title: can someone get the status of an error during try and catch? Node.js
body: <p>i am trying to get a status of any error 
  is that possible during a try-catch method</p>
  
  <p>example</p>
  
  <pre><code>try{
  //something to do
  }
  catch(e){
  console.log(e.status)
  }
  </code></pre>
  
  <p>I am trying to implement it in the following code </p>
  
  <pre><code>try {
        entryModel.entries.push(newEntry);
        return res.status(201).json({
          status: 201,
          message: 'entry successfully created',
          data: {
            newEntry,
          },
        });
      } catch (e) {
        return res.status(e.status).json({
          status: e.status,
          error: e.message,
          data: {
            newEntry,
          },
        });
      }
  </code></pre>