Examples:
curl -s -o /dev/null -I -w "%{http_code}" http://www.example.org/ #to get the http-status-code