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

前端 未结 6 2086
轮回少年
轮回少年 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条回答
  •  萌比男神i
    2020-12-13 17:31

    Getting overly clever with obscure-er HTTP error codes is a bad idea. Browsers sometimes react in unhelpful ways that obfuscate the situation. Stick with 404.

提交回复
热议问题