Pcornel
Automation · Automation Troubleshooting

HTTP Error

Cheat sheet · https://pcornel.dk/topic.php?topic=6050

Back to the Topic

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

BoundaryHealthy evidenceSuspicious evidence
Symptom / scopeTime window, immutable source/run identity, effective inputs and exact targets are explicitFloating source, changed inputs or ambiguous targets destroy reproducibility
First failed boundaryTransport/auth/dependency/render/operation evidence identifies the earliest divergenceInvestigation starts at the final error and skips earlier unproven boundaries
Effective outcomeController result is paired with target read-back and workload/service acceptanceGreen execution state or changed symptom substitutes for effective-state verification
Recovery / closureMinimal change restores the original test and regression/partial-state checks are cleanBroad 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

Confirmation

Confirm action

Continue?