大网数据广告活动
Web 标准与前端开发

505 HTTP Version Not Supported

· 52CE 我爱测

The HTTP **`505 HTTP Version Not Supported`** server error response status code indicates that the HTTP version used in the request is not supported by the server.

The HTTP 505 HTTP Version Not Supported server error response status code indicates that the HTTP version used in the request is not supported by the server.

It's common to see this error when a request line is improperly formed such as GET /path to resource HTTP/1.1 or with \n terminating the request line instead of \r\n. For example, intermediaries such as load balancers may not handle request lines of a forwarded request as illustrated in the example below.

Status

505 HTTP Version Not Supported

Examples

A 505 due to malformed request-line

In the following example, a client requests example.com/dog%20trainers, but due to incorrect load balancer configuration, the Percent-encoding in the URL is not handled properly. In this case, the origin server sees trainers instead of the HTTP version, and a 505 response is returned instead. A request identifier is contained in the response body for illustration of a way that may help server administrators narrow down the root cause of the problem:

GET /dog trainers HTTP/1.1
Host: example.com
HTTP/1.1 505 HTTP Version Not Supported
Content-Type: text/html;
Content-Length: 123

<!doctype html>
<html lang="en">
<head>
  <title>505 HTTP Version Not Supported</title>
</head>
<body>
  <h1>505 HTTP Version Not Supported</h1>
  <p>If this problem persists, please <a href="https://example.com/support">contact support</a>.</p>
  <p>Server logs contain details of this error with request ID: ABC-123.</p>
</body>
</html>

Specifications

See also

来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。

资料来源与适用范围

资料来源
MDN Web Docs / Mozilla 贡献者
适用范围
请按文中版本与环境说明核对
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 2.5

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。