Use the following cURL command and pipe it to grep like so:
$ curl -I -s -L http://example.com/v3/get_list | grep "HTTP/1.1"
Here's what each flag does:
-I
: Show only response headers-s
: Silent - Don't show progress bar-L
: FollowLocation:
headers
Here is a link to HTTP status codes.
Run from the command line. This curl runs in silent mode, follows any redirects, get the HTTP headers. grep will print the HTTP status code to standard output.