API Testing · Junior · Question 15 of 75

What should GET /users?name=zzz usually return when nothing matches?

Show the answer

Correct answer: 200 OK with an empty list

Explanation

A search that finds nothing is a successful search. The collection exists; it's just empty.

Further reading

Problem with a question

API Testing · Junior · question 15

Test yourself

Take the API Testing · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz