3 ms·
404 indicates an error, if the result is just empty but not erroneous 204 "no content" may be better.
by ako 7y ago
404 indicates an error, if the result is just empty but not erroneous 204 "no content" may be better.
- wwweston 7y ago+1, 204 is underutilized for no-result cases.
- jbverschoor 7y agoIn the browser it will also do no page refresh as there is nothing to render.