Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mohamedkhallouq
GitHub Repository: mohamedkhallouq/content
Path: blob/main/files/en-us/web/http/status/101/index.md
6546 views
---
title: 101 Switching Protocols slug: Web/HTTP/Status/101 spec-urls: https://httpwg.org/specs/rfc9110.html#status.101
---

{{HTTPSidebar}}

The HTTP 101 Switching Protocols response code indicates a protocol to which the server switches. The protocol is specified in the {{HTTPHeader("Upgrade")}} request header received from a client.

The server includes in this response an {{HTTPHeader("Upgrade")}} response header to indicate the protocol it switched to. The process is described in the following article: Protocol upgrade mechanism.

Status

101 Switching Protocols

Examples

Switching protocols might be used with WebSockets.

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

Specifications

{{Specifications}}

See also