Using CURL to get HTTP/S Status Codes

 
curl -Is https://{SITE}.com | head -1
HTTP/2 200

curl -Is https://{SITE}.com/login.asp | head -1
HTTP/2 404

curl -Is http://{SITE}.com | head -1
HTTP/1.1 302 Redirect

curl -Is http://{SITE}.com/login.asp | head -1
HTTP/1.1 302 Redirect