Msg#: 4219322 posted 3:57 pm on Oct 20, 2010 (gmt 0)
Which status-Code to use?
I have a website with several thousand pages of unique content. Because of some error, about 80% of the content pages in the CMS wont be available for at least one week and just will give back an empty page. Which HTTP-Status code is correct in this case?
204 = available but no content 302 = moved temporarily (redirect everything to the mainpage) 404 = error with page 503 = server temporarily not available
I thought about using 404 error code and just hope that search egines will index the site again after its online again. As far as I understand, 503 is only used if a whole webserver is down, not only part of the service?
Msg#: 4219322 posted 6:04 pm on Oct 20, 2010 (gmt 0)
Use 503, absolutely 503.
Server isn't available for this request. The fact it might be available for a different request a few seconds later and then not available again only seconds later for some other request probably doesn't come into it.