HTTP 426 Upgrade Required
客户端错误响应代码指示服务器拒绝使用当前协议执行请求,但可能在客户端升级到其他协议后愿意这样做。
服务器发送一个Upgrade
包含此响应的头部以指示所需的协议。
426 Upgrade Required
HTTP/1.1 426 Upgrade Required Upgrade: HTTP/3.0 Connection: Upgrade Content-Length: 53 Content-Type: text/plain This service requires use of the HTTP/3.0 protocol
规范 | 标题 |
---|---|
RFC 7231,第6.5.15节:426需要升级 | 超文本传输协议(HTTP / 1.1):语义和内容 |
Upgrade
101
Switching Protocol