HTTP 101 Switching Protocols โ Meaning, Causes & How to Fix
The server agrees to switch protocols as requested by the client in an Upgrade header.
- Code
- 101
- Name
- Switching Protocols
- Class
- 1xx Informational
- Specification
- RFC 9110 ยง15.2.2
- Cacheable by default
- Not applicable (interim response)
What HTTP 101 means
101 Switching Protocols means the server accepts the clientโs Upgrade request and, right after this response, the connection speaks a different protocol. Its most common use today is opening a WebSocket connection from an HTTP/1.1 request.
Common causes
- A browser or client opened a WebSocket (
Upgrade: websocket). - A client requested an upgrade to another protocol on the same connection.
How to fix it
For site owners
- If WebSockets fail behind a reverse proxy, forward the
UpgradeandConnectionheaders (in nginx:proxy_http_version 1.1plus both headers). - Make sure load balancers allow long-lived connections.
For visitors & developers
- A 101 is success for a WebSocket handshake โ anything else (often 400, 403 or 426) means the upgrade was refused.
SEO impact
No SEO impact. Crawlers do not open WebSocket connections; pages should not depend on them for indexable content.
Example 101 response
HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: s3pPLMBiTxaQ9kYGzzhZRbK+xOo=
Related status codes
Check or look up another code
Search and filter every code in the HTTP Status Codes tool, browse the full list by class, or read HTTP status codes explained: the complete developer guide.
Open HTTP Status Codes tool โAll status codesFrequently asked questions
What does HTTP 101 mean?
HTTP 101 Switching Protocols is a 1xx Informational status code. The server agrees to switch protocols as requested by the client in an Upgrade header.
Does HTTP/2 use 101 Switching Protocols?
No. HTTP/2 does not allow the 101 mechanism; it is an HTTP/1.1 feature. WebSockets over HTTP/2 use a different method (extended CONNECT, RFC 8441).
Which specification defines 101?
It is defined in RFC 9110 ยง15.2.2.
Is a 101 response cacheable?
No. 101 is an interim (1xx) response; only the final response that follows can be cached.