HTTP Error
Cheat sheet · https://pcornel.dk/topic.php?topic=6050
Answer
HTTP errors in automation are diagnosed from the status code plus the full request and response: 401 means authentication failed, 403 not allowed, 404 wrong path, 409/422 invalid request, 429 rate limited, and 5xx a server-side problem.
Remember
- 404 ≠ resource never existed; endpoint/version or authorization can affect visibility.
- 401 ≠ password specifically is wrong.
- 403 ≠ authentication failed.
- 500 ≠ retry is always safe.
First checks
curl -sS -o /dev/null -w '%{http_code}' <url>— status- Response body error details — cause
- Status-specific handling (4xx vs 5xx) — action
Commands
curl -sv --connect-timeout 5 --max-time 15 <url> -o /dev/null- Read-only/validation observation for DNS/connect/TLS/HTTP timing and failure boundary for a documented read-only endpoi…
curl -sv
Verify in this order
response status → classification → action
Where it usually breaks
HTTP status is protocol evidence for one exchange; it does not by itself identify root cause or whether a side effect committed before an error was returned.
Client payload/auth → HTTP transport → endpoint validation/policy → request accepted → queued/job execution → target mutation → effective state → consumer workload.
HTTP Error troubleshooting proof-boundary map
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Symptom / scope | Time window, immutable source/run identity, effective inputs and exact targets are explicit | Floating source, changed inputs or ambiguous targets destroy reproducibility |
| First failed boundary | Transport/auth/dependency/render/operation evidence identifies the earliest divergence | Investigation starts at the final error and skips earlier unproven boundaries |
| Effective outcome | Controller result is paired with target read-back and workload/service acceptance | Green execution state or changed symptom substitutes for effective-state verification |
| Recovery / closure | Minimal change restores the original test and regression/partial-state checks are clean | Broad retry or unrelated edits make the incident non-reproducible and hide residual state |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6050