← Quiz: First API Call: all 10 questions
Quiz: First API Call · Question 9 of 10
A request fails with a 400 Bad Request error. What is the right response?
A request fails with a 400 Bad Request error. What is the right response?
- A.Retry it in a loop until it works
- B.Wait one minute and retry
- C.Fix the request in your code, because retrying the same bad request will fail again
- D.Switch to a cheaper model
Answer & explanation
Correct answer: Fix the request in your code, because retrying the same bad request will fail again
429 and 5xx can be retried; 400 needs a code fix.
Can you get the rest right without peeking?
Take the timed Quiz: First API Call quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →