D4: API Error Types & Recovery
Claude Certified Developer – Foundations exam practice questions · 11 flashcards
Question
What does HTTP 400 (invalid_request_error) mean?
1 / 11
Tip: Space flips the card, ← / → navigate.
Show all 11 API Error Types & Recovery practice questions and answers
- What does HTTP 400 (invalid_request_error) mean?The request is malformed or invalid; fix it, don't retry unchanged.
- What does HTTP 401 mean?Authentication failed: missing or invalid API key.
- What does HTTP 403 mean?Permission error: the key lacks access to that resource.
- What does HTTP 413 mean?Request too large.
- What does HTTP 429 mean and how do you recover?Rate limit exceeded; wait (respect retry-after) and retry with exponential backoff.
- What does HTTP 529 mean?Overloaded: the API is temporarily overloaded; retry with backoff.
- What does HTTP 500 mean?Internal API error; usually safe to retry with backoff.
- What is exponential backoff with jitter?Waiting increasingly longer between retries, plus randomness, to avoid synchronized retry storms.
- Do the official SDKs retry automatically?Yes, retryable errors are retried a few times by default (configurable).
- Which errors should NOT be retried as-is?400, 401, 403 and 413: they need a fix, not a retry.
- What fallback strategies exist when retries fail?Queue for later, use a different model, return a graceful error, or degrade functionality.