rest - In a RESTful HTTP request for search results, if there are no results, should I return an empty array or a 404 error code? -


In a lush HTTP request for search results, if there are no results, then I should return an empty table or error code ?

You should return an empty array, because the resource (result store) is present, but it is empty .


Comments

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

class - Kivy: how to instantiate a dynamic classes in python -

python - mayavi mapping a discrete colorbar on a surface -