What's the most appropriate HTTP status code for an “item not found” error page

前端 未结 6 2068
轮回少年
轮回少年 2020-12-13 16:41

I\'m curious what\'s the most appropriate HTTP status code for an \"item does not exist\" page.

If the page itself doesn\'t exist, I\'ll obviously use 404. However,

6条回答
  •  失恋的感觉
    2020-12-13 17:12

    204:

    No Content.” This code means that the server has successfully processed the request, but is not going to return any content

    https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/204

提交回复
热议问题