The HTTP 505 status code means a server doesn’t support the major HTTP version you’re requesting.
It happens when you specify a non-existent (for example, HTTP/1.2) or unsupported (for example, HTTP/3) HTTP protocol version in your request.
You might also encounter the 505 HTTP Version Not Supported
status code if you send the valid and supported HTTP version to the server with trailing whitespace. According to the HTTP 1.1 spec, the version of the HTTP message should contain the string HTTP
, followed by the forward slash, and the protocol version formatted as <major>.<minor>
.
HTTP "/" DIGIT "." DIGIT
If you’re using the protocol version without a minor version (for example, HTTP/2 or HTTP/3), you can omit the minor version part.
Bad URL
In some cases, the server might return this status code when the URL is invalid or malformed. Make sure the request URL is valid, and all characters are properly encoded. Pay extra attention to whitespaces, and replace them with %20
if you find any (URL encoding for a whitespace character).
No spyware, no promotional emails, or keyword-stuffed junk. I will only send you a single email when I've got something interesting to say. Unsubscribe anytime.
You can also subscribe to the Atom feed (it's like RSS, but better).