Correct http error code for unconfigured virtual hosts

Hanno's Blog

Saturday, December 1. 2007

Correct http error code for unconfigured virtual hosts


Trackbacks

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.
#1 Lars Strojny (Homepage) on 2007-12-02 12:08 (Reply)
Und dies ist ein Beispiel wie man es vielleicht besser nicht macht: http://80.67.17.167/
(DomainFactory)
#2 Alex (Homepage) on 2007-12-02 13:38 (Reply)

Add Comment

E-Mail addresses will not be displayed and will only be used for E-Mail notifications.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

 
 

About

This blog is written by Hanno Böck. Unless noted otherwise, its content is licensed as CC0.

You can find my web page with links to my work as a journalist here.

I am also publishing a newsletter about climate change and decarbonization technologies.

The blog uses the free software Serendipity and is hosted at schokokeks.org.

Hanno on Mastodon | Contact / Imprint | Privacy / Datenschutz