Checking response.isSuccessful in Retrofit tells you whether the status code is:

  1. A redirect
  2. Exactly 404
  3. Above 500
  4. In the 200–299 range
Answer

D) In the 200–299 range

isSuccessful is true for 2xx codes.

Computer Science MCQ · More Web Services: Accessing and Creating MCQs · Practise