Append -w "\nSTATUS: %{http_code}\n"
at the end of your cURL call.
-w
helps you to write an output after completion
-s
optional - can be added to silent other outputs from the curl request
curl -X PUT -H "Accept: application/json" -H http://yourapp.com/api/endpoint -w "\n\nSTATUS: %{http_code}\n\n"
STATUS: 200