1xx Informational
The server is saying, 'Let's keep talking, but switch to a different protocol for the rest of this connection.'
Use 101 when the client requested a protocol upgrade and the server is switching this connection to that protocol.
GET https://api.example.test/chat
# Headers
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==
Sec-WebSocket-Version: 13101 Switching Protocols
# Headers
Connection: Upgrade
Upgrade: websocket
Sec-WebSocket-Accept: s3pPLMBiTxaQ9kYGzzhZRbK+xOo=The server accepts the WebSocket upgrade and the connection continues using the new protocol.