Msg#: 4346138 posted 1:41 am on Sep 6, 2011 (gmt 0)
Serving the right error codes for both planned and unplanned outages is something that few sites get completely right.
OK, now I'm trying to wrap my brain around the idea of having control over what gets served up during an unplanned, uhm, anything. Is there a definitive thread that explains it? "Error code" doesn't seem to be a fruitful search string ;) (16,600 hits-- constrained to this site-- goes beyond "fruitful" into "rotting on the ground". Squelch.)
Msg#: 4346138 posted 7:18 am on Sep 6, 2011 (gmt 0)
Serving a "site temporarily offline for updating" message with "200 OK" with or without 301 redirecting all site URLs to an error page, is a big bad idea.
DNS failure, server meltdown, etc will just timeout and return no website. Serving "can't connect to database" with "200 OK" is asking for trouble; serving 503 is much better. No idea if there is a definitive list.