I make a cURL
request using:
PATCH=$(curl -i -F file=@$FILE -F path="${STORAGE_PATH}" -F name="${NAME}" -F description="${DESC}" "${SERVER}/api/patches")
If the response goes through and the data is property formatted, then PATCH
would be a JSON of the response.
I also want to get the HTTP response code (like 200, 422) at the same time, so I can verify that the process went through.
how do I do that? I just want to get a number (like 200).