# 101 Switching Protocols

> HTTP 101 Switching Protocols is a success signal: the server agreed to change protocol, usually to WebSocket. How the handshake works and how to proxy it.

Canonical: https://scaplet.com/errors/http/101

Guide Error · HTTP status codes

HTTP 101 Switching Protocols is a success signal: the server agreed to change protocol, usually to WebSocket. How the handshake works and how to proxy it.

3 min

read

4

sources

Oct 24, 2026

updated

Scaplet Editorial Team

author

101 1xx · Informational

The short answer

HTTP 101 Switching Protocols is not an error. It means the server accepted the client's Upgrade request and is moving the connection to another protocol, most often WebSocket. The server must name the new protocol in an Upgrade header. If a WebSocket fails to connect, the cause is usually that no 101 came back.

1. [What HTTP 101 means and who sends it](#what-http-101-means-and-who-sends-it)
2. [What visitors should know](#what-visitors-should-know)
3. [How to find and fix a failed upgrade as a developer](#how-to-find-and-fix-a-failed-upgrade-as-a-developer)
4. [What it does to SEO](#what-it-does-to-seo)

30-second check

## Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F101%20(%22101%20Switching%20Protocols%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F101%20(%22101%20Switching%20Protocols%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F101%20(%22101%20Switching%20Protocols%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F101%20(%22101%20Switching%20Protocols%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

_01_The codes around a protocol upgrade

## What HTTP 101 means and who sends it

RFC 9110 says 101 (Switching Protocols) "indicates that the server understands and is willing to comply with the client's request" for a change in the application protocol being used on the connection, made through the Upgrade header. The server "MUST generate an Upgrade header field in the response that indicates which protocol(s) will be in effect after this response".

Code

### 101 Switching Protocols

Meaning

Server agreed; the connection now uses the new protocol

Code

### 426 Upgrade Required

Meaning

Server refuses the current protocol and lists acceptable ones in Upgrade

Code

### 200, 400 or other final code

Meaning

Upgrade was ignored or the request was rejected; no switch happened

The client asks and the server answers, so 101 comes from the origin server or from a proxy that tunnels the connection. After the response, the same TCP connection carries the new protocol, such as WebSocket. A server "MUST NOT switch to a protocol that was not indicated by the client in the corresponding request's Upgrade header field" and "MAY ignore a received Upgrade header field" and keep using HTTP, which usually means a normal 200 or similar instead of 101.

_02_Explained

## What visitors should know

A visitor never needs to act on a 101. It is a success signal, and the page or app carries on over the new protocol. If a live feature such as chat or notifications does not connect, open the browser DevTools Network tab, find the request to the socket URL and look at its status. Anything other than 101 means the upgrade did not succeed, and the status that came back is the [thing](/glossary/entity) to report to the site.

_03_How it works

## How to find and fix a failed upgrade as a developer

nginx WebSocket proxy config (from the nginx docs)

```
location /chat/ { proxy_pass http://backend; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; }
```

A WebSocket upgrade (MDN example)

```
GET /notifications HTTP/1.1 Host: example.com Upgrade: websocket Connection: Upgrade HTTP/1.1 101 Switching Protocols Upgrade: websocket Connection: Upgrade
```

1. 01

### Check the request headers

The client must send Upgrade: websocket and Connection: Upgrade. RFC 9110 says a sender of Upgrade must also send an Upgrade connection option in the Connection header field.
2. 02

### Check the response

A valid 101 carries Upgrade and Connection headers. If you get 200 or 400 instead, the server (or a proxy) did not accept the handshake.
3. 03

### Pass the headers through your reverse proxy

Upgrade and Connection are hop-by-hop, so nginx's documentation says they "have to be passed explicitly". Without that, the backend never sees the request to switch.
4. 04

### Raise idle timeouts

nginx closes a proxied WebSocket connection by default "if the proxied server does not transmit any data within 60 seconds". Increase proxy_read_timeout or send periodic ping frames.
5. 05

### Check HTTP/1.1 versus newer

The Upgrade mechanism is for transitioning from HTTP/1.1; test the handshake with a client that uses it before debugging the backend.

_04_Explained

## What it does to SEO

Google's documentation on how [HTTP status codes](/glossary/http-status-codes) affect its crawlers does not list 101, and it says [Search Console](/glossary/google-search-console) "generates error messages for status codes in the 4xx—5xx range". A failed upgrade breaks a live feature such as chat, but it is not a page status that Google reports. If a page itself returns a 4xx or 5xx, see [4xx errors](/seo-issues/4xx-errors) and Google's documentation on how HTTP status codes affect its crawlers. Related: [426 Upgrade Required](/errors/http/426).

Questions

## Asked a lot.

4 questions people ask next, answered from the sources on this page.

_01_ What is status 101 in WebSocket?

It is the server's reply to the WebSocket handshake. It confirms the switch from HTTP to WebSocket and includes Upgrade: websocket.

_02_ Is HTTP 101 an error?

No. It is an informational response that signals success. Errors in a WebSocket connection show up as a different final status.

_03_ Why does my WebSocket not get a 101 behind nginx?

nginx does not pass Upgrade and Connection to the backend by default, because they are hop-by-hop headers. Set both explicitly with proxy_set_header.

_04_ Can the server ignore an Upgrade header?

Yes. RFC 9110 says a server MAY ignore it and continue using the current protocol.

Sources · 4

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- rfc-editor.org
- mozilla.org
- nginx.org
- iana.org

1. 01 [RFC 9110: HTTP Semantics](https://www.rfc-editor.org/rfc/rfc9110.html) rfc-editor.org · checked 2026-10-25
2. 02 [MDN: 101 Switching Protocols](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/101) developer.mozilla.org · checked 2026-10-25
3. 03 [nginx: WebSocket proxying](https://nginx.org/en/docs/http/websocket.html) nginx.org · checked 2026-10-25
4. 04 [IANA HTTP Status Code Registry](https://www.iana.org/assignments/http-status-codes) iana.org · checked 2026-10-25

## Keep learning

[All errors](/errors)

[Learn 426 Upgrade Required HTTP status codes](/errors/http/426) [Related HTTP status codes Crawling and indexing](/glossary/http-status-codes) [Read next 100 Continue HTTP status codes](/errors/http/100) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in errors
[Vercel: too many redirects](/errors/cdn/vercel-too-many-redirects) [HTTP 200 OK](/errors/http/200) [HTTP 201 Created](/errors/http/201)

More in HTTP status codes
[HTTP 407 Proxy Authentication Required](/errors/http/407) [HTTP 408 Request Timeout](/errors/http/408) [HTTP 409 Conflict](/errors/http/409) [HTTP 412 Precondition Failed](/errors/http/412) [HTTP 431 Request Header Fields Too Large](/errors/http/431) [HTTP 499 Client Closed Request](/errors/http/499) [HTTP 500 Internal Server Error](/errors/http/500) [HTTP 501 Not Implemented](/errors/http/501) [HTTP redirect codes](/errors/http/http-redirect-codes) [HTTP status code list](/errors/http/http-status-code-list) [REST API status codes](/errors/http/rest-api-status-codes) [100 Continue](/errors/http/100) [101 Switching Protocols](/errors/http/101) [402 Payment Required](/errors/http/402) [403 Forbidden](/errors/http/403) [404 Not Found](/errors/http/404) [406 Not Acceptable](/errors/http/406) [411 Length Required](/errors/http/411) [413 Request Entity Too Large](/errors/http/413) [414 URI Too Long](/errors/http/414) [415 Unsupported Media Type](/errors/http/415) [416 Range Not Satisfiable](/errors/http/416) [417 Expectation Failed](/errors/http/417) [418 I'm a Teapot](/errors/http/418)

Terms on this page
[Entity](/glossary/entity) [HTTP status codes](/glossary/http-status-codes) [Google Search Console](/glossary/google-search-console)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

Run the free audit, then approve the fixes. Every change can be undone.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
