title: how to get error status code from error object
body: <p>i was doing my <code>try catch</code>es and assinging all error status codes as <code>500</code> and i want to know if is it possible to get error status code for example inside catch block, like this:</p>
  
  <p>instead of this</p>
  
  <pre><code>catch(err){
      return res.status(500).send({
          message: err.message
      })
  }
  </code></pre>
  
  <p>this:</p>
  
  <pre><code>catch(err){
      return res.status(err.statusCode).send({
          message: err.message
      })
  }
  </code></pre>
  
  <p>i checked docs but there is no word about this</p>