HTTP Status Code

Advertisement

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.

HTTP Status Code 1

%d bloggers like this: