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
Post a Comment