101
ℹ️ Informational RFC 9110, Section 15.2.2

Switching Protocols

The server agrees to switch protocols as requested by the client via the Upgrade header.

Common Use

Commonly used when upgrading from HTTP to WebSocket connections, or from HTTP/1.1 to HTTP/2 or HTTP/3. Note: 1xx status codes are informational and cannot be sent as a final HTTP response. Our API returns them with status 200 and an X-Original-Status header indicating the original code. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/101

API Endpoint

https://codes.uncodigo.com/http/101

Example with curl

curl -i https://codes.uncodigo.com/http/101

Try It

GET /http/101
Click "Send Request" to see the response...

Example

Request

GET /chat HTTP/1.1
Host: example.com
Upgrade: websocket
Connection: Upgrade

Response

HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade