Client Error

    HTTP 426 Upgrade Required

    The server will not handle the request over the current protocol and tells the client which protocol to switch to.

    Check a URL for HTTP 426

    Paste any URL to see whether it currently returns 426. Runs a live HTTP probe and follows redirects.

    TL;DR

    426 means "use a different protocol". Read the Upgrade header in the response: it names what the server wants. Most often a WebSocket address was called as a normal page, or the client is too old.

    What does HTTP 426 mean?

    HTTP 426 Upgrade Required means the server refuses to carry out the request using the protocol the client chose, and might do so after the client switches. The response has to include an Upgrade header naming the protocol required. It is seen on WebSocket endpoints reached with an ordinary request, and on services that demand a newer HTTP or TLS version than the client used.

    Common Causes

    • •Opening a WebSocket address with a normal HTTP request instead of a WebSocket handshake
    • •A proxy or load balancer removing the Upgrade and Connection headers a WebSocket needs
    • •A client using an HTTP version older than the service requires
    • •An out-of-date client library or runtime, when an API has raised its minimum version

    How to Fix It

    1. 1.Read the Upgrade header in the response to see the protocol required
    2. 2.For WebSockets, connect with a WebSocket client and a ws:// or wss:// address
    3. 3.Configure the proxy to pass WebSocket upgrades through, for example the Upgrade and Connection headers in nginx
    4. 4.Update the client library, runtime or operating system if the service needs a newer protocol version

    SEO Impact

    A public page should not return 426. If one does, crawlers cannot fetch it and it is treated like any other 4xx, so it will not be indexed.

    Monitor HTTP 426 with LemWatch

    If a real-time feature such as chat or live updates stops working after a proxy change, look for 426 on the WebSocket address. It means the upgrade headers are being dropped on the way.

    Frequently Asked Questions about HTTP 426

    How is 426 related to 101?

    They are two outcomes of the same exchange. 101 Switching Protocols means the server agreed to change protocol. 426 means the server requires a change that the client did not ask for.

    Free Website Tools

    Check your site for common issues that cause HTTP errors: