Skip to main content
HTTP/1xx (Informational)

101 Switching Protocols

The requester has asked the server to switch protocols and the server has agreed to do so.

❓ Why does this happen?

Typically sent during the WebSocket handshake when upgrading an HTTP/1.1 connection to the ws:// or wss:// protocol.

✅ How to fix it

Ensure WebSocket client and server connection handshakes include valid Upgrade and Connection headers.

Frequently Asked Questions

What does HTTP Status 101 mean?
The requester has asked the server to switch protocols and the server has agreed to do so.
Why am I getting a 101 status code?
Typically sent during the WebSocket handshake when upgrading an HTTP/1.1 connection to the ws:// or wss:// protocol.
How do I fix a 101 Switching Protocols error?
Ensure WebSocket client and server connection handshakes include valid Upgrade and Connection headers.

Explore more HTTP Status Codes