Hacker News new | ask | show | jobs
by ako 2374 days ago
404 indicates an error, if the result is just empty but not erroneous 204 "no content" may be better.
1 comments

+1, 204 is underutilized for no-result cases.
In the browser it will also do no page refresh as there is nothing to render.