cURL but only printing the http status code from the response

curl -s -w '%{http_code}\n' -o /dev/null https://codebeef.com/

Useful in the event that you just need to check whether a page is giving an expected response code, particularly when coupled with looping through a list of urls:

cat urls.txt | while read line ; do
  curl -s -w '%{http_code}\n' -o /dev/null $line
done