101 Switching Protocols
Fault: Neither
TL;DR
The server understands and is willing to comply with the client's request to switch protocols.
The server is switching protocols as requested by the client.
What HTTP 101 Switching Protocols Means
The server is switching protocols as requested by the client.
The server understands and is willing to comply with the client's request to switch protocols.
Common Causes
- WebSocket upgrade request
- HTTP/2 upgrade
- Protocol switch requested via Upgrade header
How to Fix It (For Visitors)
- This is not an error - protocol upgrade in progress
How to Fix It (For Developers/Admins)
- Ensure proper WebSocket handshake implementation
- Handle protocol upgrades correctly
Frequently Asked Questions
What does HTTP 101 Switching Protocols mean?
The server understands and is willing to comply with the client's request to switch protocols. In short: The server is switching protocols as requested by the client.
How should I handle an HTTP 101 Switching Protocols response?
Ensure proper WebSocket handshake implementation. Handle protocol upgrades correctly.
Official Specification
The 101 Switching Protocols status code is defined in RFC 7231 Section 6.2.2.