Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I noticed that, say, goolge's 404 page returns a 404 status ( while github's returns 200 ( Should error pages (even 503s, etc.) always be served with the correct status codes? Or should front end servers intercept them and display 200ed error pages?

share|improve this question
up vote 10 down vote accepted

Error pages should always be served with the correct status codes.

share|improve this answer
Thank you -- any chance you have references? – Aaron Gibralter Jun 2 '11 at 1:32
@Aaron - besides common sense? I don't know why on earth github would return a 200 OK on a 404 page... – Mark Henderson Jun 2 '11 at 2:05
@Mark Henderson Access any other invalid URL on GitHub and it'll return a 404. 404.html is a real HTML page that's presumably included when a 404 is encountered. – ceejayoz Jun 2 '11 at 3:36
Note that this can't be done effectively on IIS 7.5:… – Jordan Reiter Jul 8 '11 at 0:47

GitHub's 404.html page is returning 200 because you're directly accessing their 404 template. returns a 404 status code, as it should be.

share|improve this answer
Ahh yeah, I realized that after I posted. I guess Google doesn't have a file called 404.html... lol. – Aaron Gibralter Jun 2 '11 at 3:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.