curl

Get only the status code

curl -s -o /dev/null -w "%{http_code}" https://www.example.com