2026-04-24 · 1 min de leitura
Checklist de depuracao de resposta HTTP
Isole falhas de API por status, headers e formato de payload.
Pontos principais
- Check status code and Content-Type first before reading response body details.
- Reproduce with the same headers and query parameters to avoid false positives.
Fast triage flow
Start from response status, then inspect response headers. This quickly separates auth, validation, and upstream outages.
For 4xx responses, compare request headers and body shape against API docs before retrying.
For 5xx responses, preserve request IDs and timestamps so backend logs can be correlated.
Keep requests reproducible
Store the exact URL, query string, auth mode, and body used during debugging.
If your request includes dynamic fields (timestamps, nonces), pin test fixtures to reduce noise.
Perguntas frequentes
Why do I still get 401 after adding a token?
Double-check Authorization format and whether the upstream expects Bearer, Basic, or signed cookies.
What should I inspect for 415 or 422 errors?
Verify Content-Type and payload schema. Validate JSON locally before sending the request.