how to get status code from response curl call code example Example: curl return code only curl -s -o /dev/null -w "%{http_code}" http://www.example.org/