HTTP 1xx Informational Status Codes/HTTP 101 Switching Protocols

Server is switching protocols

Section: HTTP 1xx Informational Status Codes

HTTP 101 Switching Protocols

text
text
curl -i -N -H 'Connection: Upgrade' -H 'Upgrade: websocket' https://example.com/socket
Explanation

Used when a client requests a protocol switch, such as upgrading to WebSocket.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing HTTP 1xx Informational Status Codes
HTTP 100 Continue
Client may continue request body
OpenIn sheettextsame section
HTTP 102 Processing
Server has received and is processing
OpenIn sheettextsame section
HTTP 103 Early Hints
Preliminary headers before the final response
OpenIn sheettextsame section