I have already googled that 505 is \"HTTP Version not supported\", but still can not figure out my problem. I have a web application with Tomcat,server side with self-signed
If you make a request to Tomcat with trailing whitespace after the HTTP version (as in your example), Tomcat will respond with 505 error. Confirmed on Tomcat 7.0.27.
RFC 2616 (HTTP 1.1) says that the HTTP-Version
is made up of "HTTP/" + digit + "." + digit
. Request-Line ends with " " + HTTP-Version + CRLF
which means no whitespace is allowed after that last digit.
References: