bash site check 200 code example Example: check if url returns 200 via curl curl -o /dev/null -u username:password -Isw '%{http_code}\n' {URL}