Saturday, December 1. 2007Correct http error code for unconfigured virtual hostsTrackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
It might not be an error code of the 200-range, as this would indicate that everything is fine (especially 204 is inappropriate, as there is in fact content). The 500-range is designed for server errors, and a missing configuration is definitely a server error. Every 400-statuscode reacts on a wrong client request, so we can ignore that. 503 is not ok, because a missing configuration is not temporary. It is not due to maintainance and therefore will not automatically go away after a certain delay. So there is just 501 or 500. 501 is more for specific HTTP-method errors so I would vote for 500.
Und dies ist ein Beispiel wie man es vielleicht besser nicht macht: http://80.67.17.167/
(DomainFactory) |
About meYou can find my web page with links to my work as a journalist at https://hboeck.de/.
You may also find my newsletter about climate change and decarbonization technologies interesting. Hanno Böck mail: hanno@hboeck.de Hanno on Mastodon Impressum Show tagged entries |