title: Can I have curl print just the response code?
body: <p>I read <a href="https://superuser.com/questions/272265/getting-curl-to-output-http-status-code">https://superuser.com/questions/272265/getting-curl-to-output-http-status-code</a> . It mentioned that </p>
  
  <pre><code>curl -i 
  </code></pre>
  
  <p>will print the HTTP response code. Is it possible to have curl print <em>just</em> the HTTP response code? Is there a generic way to get the HTTP status code for any type of request like GET/POST/etc?</p>
  
  <p>I am using curl 7.54.0 on Mac OS High Sierra.</p>
  
  <p>Thanks for reading.</p>