MDN wants to talk to developers like you: https://qsurvey.mozilla.com/s3/8d22564490d8

101 Switching Protocol

The HTTP 101 Switching Protocol response code indicates the protocol the server is switching too as requested using an Upgrade request header by the client.

The server sends an Upgrade response header indicate the protocol it switched to.

Status

101 Switching Protocol

Examples

Switching protocols might be used with WebSockets.

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

Specifications

Specification Title
RFC 7231, section 6.2.2: 101 Switching Protocol Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content

See also

Document Tags and Contributors

 Contributors to this page: teoli, fscholz
 Last updated by: teoli,