tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Case <>
Subject Re: automatic deployment without server.xml - bad request
Date Fri, 03 Dec 2010 09:05:05 GMT
> From: Markus Schönhaber <>
> Yes, it is an  error. But in this case, I, too, consider the error erroneous.
> A status code  of 400 basically means that the request was syntactically
> b0rked. But, as I  understand it, that's not the problem here: the
> request is syntactically fine  - it fails because the server is
> misconfigured. Therefore a status code of  500 seems more appropriate to me.

Well, says:

"Error 4xx, 5xx 
The 4xx codes are intended for cases in which the client seems to have erred, 
and the 5xx codes for the cases in which the server is aware that the server has 
erred. It is impossible to distinguish these cases in general, so the difference 
is only informational. 

The body section may contain a document describing the error in human readable 

Not found 404: The server has not found anything matching the URI given 
Internal Error 500: The server encountered an unexpected condition which 
prevented it from fulfilling the request."

I still vote for 404 :) (as if my vote matters) because the server is all fine 
and dandy (the APP is misconfigured not the server), but the client is asking 
for something not available. But the difference is only informational :)



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message