426 Upgrade Required

426 需要升级

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