What does HTTP status 101 (Switch Protocols) mean?

 
Could be also:
ConstantTypeOS
ERROR_EXCL_SEM_ALREADY_OWNEDWin32 errorWindows
ENETUNREACHerrnoLinux
ETIMEerrnoMac
EADDRNOTAVAILerrnoWindows
MEMORY1_INITIALIZATION_FAILEDBugCheck CodeWindows
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.

RFC 9110: HTTP Semantics


Looking for a different code? Search another status or error code.