A more specific way to print out just the HTTP status code is something along the lines of:
Command:
curl -s -o /dev/null -w "%{http_code}" https://wordpress.org/
Output:
200
E.g.
Developer Resources, Tips, Tricks, Tutorials and Much more.
A more specific way to print out just the HTTP status code is something along the lines of:
Command:
curl -s -o /dev/null -w "%{http_code}" https://wordpress.org/
Output:
200
E.g.