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.
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.
curl -X POST http://localhost:4449/api/messages -H 'accept: application/json' -H 'authorization: Basic cmVsYXktnruDFjEyMw==' -H 'content-type: application/json' -d "{\"cloudDelivery\":\"$cloudDelivery\"}"