Preserve one inspectable response
Run one request with headers included, then store the output privately.-i exposes response headers such as Request-Id, traceparent, and Retry-After when the API returns them.
Keep this minimum record
For a body, keep a redacted copy. Include query parameters, response view, and pagination cursor when they affect the result. You may also send
x-request-id to match an API call to your own logs; keep the returned Request-Id as the API-side identifier.
Classify before you retry
Do not turn a validation, authorization, billing, hard-cap, or quota response into a tight retry loop.
Verify the same account context
Check limits and billing with the same key used by the failing workload. This is especially useful after a402 or 429 response.
error.data.code when supplied, and request identifier. For an SDK or CLI failure, add its version and the smallest redacted reproduction.
Redact before sharing
Removex-api-key, bearer tokens, cookies, and other credentials. Remove customer data, private holdings, unreleased text, and proprietary prompts unless a narrowed reproduction genuinely requires them. Keep the endpoint path, status, error code, request ID, and the smallest useful response excerpt.
Continue with Troubleshooting for the recovery path, Error code catalog for known codes, or API conventions for request behavior.
