🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Retry it in a loop until it works
  2. B.Wait one minute and retry
  3. C.Fix the request in your code, because retrying the same bad request will fail again
  4. 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 →