Hi,

If a server responds with 'HTTP 500 Internal Server Error' is it valid to
have an empty body with no Content-Type Header?

For example is the following a valid response?

HTTP/1.1 500 Internal Server Error
Connection: close
Content-Length: 0
Date: Tue, 05 Nov 2013 11:25:20 GMT
Server: WSO2 Carbon Server


In Axis2 org.apache.axis2.transport.http.HTTPSender#handleResponse() , in
the case of http 500, the response is processed only if Content-Type Header
is present. So is the above a valid scenario or is it required to have
Content-Type header for HTTP 500 response?


Thanks,
Nufail
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to