# HTTP error status codes — without --fail, hxprobe treats 4xx/5xx as a # normal (successful) probe outcome, matching Go's http.DefaultClient # semantics. --fail opts back into "HTTP error = failure", which is what # this fixture demonstrates. The URLs below are real paths that reliably # return 404 on stable public servers. # # Note: a genuine 500 from a well-known server is hard to provoke on demand. # These 404s are sufficient to demonstrate --fail's effect on the exit code. # # Requires internet access. # # Run: uv run python -m hxprobe --fail -f configs/http-errors.txt # Expected exit code: 6 (0 without --fail — the requests still succeed) # 404 from Google https://www.google.com/this-page-does-not-exist-at-all-1234567890 # 404 from GitHub https://github.com/this-repo-does-not-exist-abcxyz123/no-way # 404 from IANA https://www.iana.org/this-page-does-not-exist-either