title: Get curl http code
body: <p>I have the following cURL request. I want to get the http_code, but I want in a different variable, because otherwise it messes with parsing the JSON response from the GET call. </p>
  
  <p>Is there anyway to do this?</p>
  
  <pre><code>curl --write-out %{http_code} --silent --output GET --header "Accept: application/json" --header "URL"
  </code></pre>