The 505 error code stands for "the server does not support or refuses to support the HTTP protocol version used in the request message"
That is pretty weird - if this was my problem I would attempt to capture the entire request - headers and body - with something like TCPMON.
There is a convenient list of response codes in the HttpServletResponse Javadocs.
Bill