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

python - Strange behavior using PyQt4's 'pyqtSlot' decorator before another decorator -

c# - UnhandledExceptionMode.ThrowException for AppDomain.UnhandledException -

c# - Process.Kill() returns access denied -