save http response code from curl request code example Example: curl get return code curl -I http://www.example.org