101 Switching Protocols
The server is switching to the protocol the client asked for in its Upgrade header, most often WebSocket.
- Class
- 1xx Informational. An interim response, sent before the final one.
- Registered
- Yes, in the IANA HTTP status code registry.
- References
- RFC 9110 ยง15.2.2 · MDN
Example response
HTTP/1.1 101 Switching Protocols Upgrade: websocket Connection: Upgrade