Choosing an HTTP Status Code — Stop Making It Hard
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. Life is bliss, well… until someone tells you you’re not doing this REST thing.