HTTP 426 Upgrade Required means the server refuses to perform the request using the current protocol but will accept it after the client upgrades to a different protocol. The response includes an Upgrade header indicating the required protocol.
426 Upgrade RequiredGET /account HTTP/1.1
Host: www.example.com
User-Agent: Mozilla/5.0
Accept: text/htmlHTTP/1.1 426 Upgrade Required
Upgrade: TLS/1.2, HTTP/1.1
Connection: Upgrade
Content-Type: text/html; charset=utf-8
<!doctype html>
<html>
<body>
<h1>426 Upgrade Required</h1>
<p>Please use HTTPS to access this page.</p>
</body>
</html>The response includes an Upgrade header specifying the required protocol.
Use HTTPS instead of HTTP, or initiate a WebSocket connection if that is what the server requires.
The server requires an encrypted connection and the client is using plain HTTP.
The endpoint only accepts WebSocket connections but received a standard HTTP request.
| Specification | Section |
|---|---|
| HTTP Semantics | RFC 9110 §15.5.22 |
This reference was compiled from official RFCs, protocol specifications, and hands-on troubleshooting experience. AI tools were used primarily for formatting and organizing the content on the page.