2015-11-06 22:55:41 +01:00
|
|
|
---
|
|
|
|
set: 4
|
|
|
|
code: 426
|
|
|
|
title: Upgrade Required
|
2015-11-07 05:34:40 +01:00
|
|
|
references:
|
|
|
|
"Rails HTTP Status Symbol": ":upgrade_required"
|
2015-11-06 22:55:41 +01:00
|
|
|
---
|
|
|
|
|
2015-11-09 02:44:05 +01:00
|
|
|
The server refuses to perform the request using the current protocol but might
|
|
|
|
be willing to do so after the client upgrades to a different protocol.
|
2015-11-07 06:45:46 +01:00
|
|
|
|
|
|
|
The server MUST send an Upgrade header field in a 426 response to indicate the
|
2015-11-09 02:44:05 +01:00
|
|
|
required protocol(s)<sup>[1](#ref-1)</sup>
|
2015-11-07 05:34:40 +01:00
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
```
|
|
|
|
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.
|
|
|
|
```
|
|
|
|
|
2015-11-09 02:44:05 +01:00
|
|
|
---
|
|
|
|
|
2015-11-09 19:23:21 +01:00
|
|
|
* <span id="ref-1"><sup>1</sup> Upgrade [RFC7230 Section 6.7][2]</span>
|
2015-11-09 02:44:05 +01:00
|
|
|
* Source: [RFC7231 Section 6.5.15][1]
|
2015-11-07 05:34:40 +01:00
|
|
|
|
|
|
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.15>
|
|
|
|
[2]: <http://tools.ietf.org/html/rfc7230#section-6.7>
|