title: In bash get the Curl return code like 200
body: <p>I just wanted to know what is the way to get the return code from the curl command. Likewise, if trigger the same curl from postman client we are able to get all error messages.</p>
  
  <p>Currently, I am just able to get the return code as "0" in case of success but I wanted "200" and other return code with respect to the command.</p>
  
  <pre><code>curl -X POST http://localhost:4449/api/messages -H 'accept: application/json' -H 'authorization: Basic cmVsYXktnruDFjEyMw==' -H 'content-type: application/json' -d "{\"cloudDelivery\":\"$cloudDelivery\"}"
  </code></pre>