API Testing · Junior · Question 15 of 75
What should GET /users?name=zzz usually return when nothing matches?
- 1
204 No Contentwith a list - 2
200 OKwith an empty list - 3
404 Not Foundwith an error
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.