| Previous | Next |
| HTTP_STATUS_CONTINUE | HTTP_STATUS_PROCESSING |
HTTP_STATUS_SWITCH_PROTOCOLS
HTTP 101 is sent after a successful protocol upgrade, such as a WebSocket upgrade. The protocol change applies only to the current connection, starting after the response header section.
When diagnosing a failed upgrade, compare the client Upgrade and Connection headers with the server response and the server-side protocol configuration. A 101 response itself is success, not an error.
The response is only an intermediate transition: after the 101 header section, communication continues using the negotiated protocol on the same connection. The Upgrade and Connection headers must agree with the requested change. Clients should not continue parsing subsequent bytes as ordinary HTTP messages once the protocol switch takes effect.
Looking for a different code? Search another status or error code.