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

sql - Find last match with latest inserted name in table -

c# - XML serialize base class without knowing derived class -

ios - Invalid IPA: missing embedded provisioning profile. Are you sure this is an ad hoc? -