小编Aar*_*ter的帖子

应该为漂亮的错误页面提供正确的状态代码吗?

我注意到,比如说,goolge 的 404 页面返回 404 状态(http://www.google.com/404.html),而 github 的返回 200(https://github.com/404.html)。错误页面(甚至 503 等)是否应该始终使用正确的状态代码?或者前端服务器应该拦截它们并显示 200ed 错误页面?

http html custom-errors

0
推荐指数
1
解决办法
200
查看次数

标签 统计

custom-errors ×1

html ×1

http ×1