Check only HTTP status code curl

Get just the response status code — useful in scripts

curl -so /dev/null -w '%{http_code}' https://example.com