Choosing an HTTP Status Code — Stop Making It Hard

这篇文章应该是我看过的解释如何选择http状态码的文章中写的最好的了。

原文(http://racksburg.com/choosing-an-http-status-code)

What could be simpler than returning HTTP status codes? Did the page render? Great, return 200. Does the page not exist? That’s a 404. Do I want to redirect the user to another page? 302, or maybe 301. 继续阅读