tool::http-status-detail
101 Switching Protocols
Server is switching protocols as requested.
Status Code
101
Name
Switching Protocols
Category
1xxDetailed Explanation
HTTP 101 Switching Protocols indicates the server is switching to the protocol specified in the client's Upgrade header. The most common use case is upgrading an HTTP connection to WebSocket. After this response, the connection uses the new protocol. It is a critical step in the WebSocket handshake.
Common Causes
- ▸A WebSocket handshake request (Upgrade: websocket header)
- ▸A request to upgrade from HTTP/1.1 to HTTP/2 (h2c)
- ▸Any client request that includes an Upgrade header for protocol switching
How to Fix
- 1.101 is a normal protocol switching response — no fix needed
- 2.Specify the desired protocol in the Upgrade header (e.g., websocket, h2c)
- 3.Verify the server supports the requested protocol before upgrading
Related HTTP Headers
UpgradeConnectionResponse Example
HTTP/1.1 101 Switching Protocols Upgrade: websocket Connection: Upgrade Sec-WebSocket-Accept: s3pPLMBiTxaQ9kYGzzhZRbK+xOo=
Related Status Codes
ad · 300×250
// related tools