HTTP 101 — Switching Protocols

The requester has asked the server to switch protocols and the server has agreed to do so

When to use it

Use status 101 when this is the correct HTTP response semantic: The requester has asked the server to switch protocols and the server has agreed to do so

Request and response example

POST /uploads HTTP/1.1
Host: api.example.com
Expect: 100-continue

HTTP/1.1 101 Switching Protocols

Related status codes

100, 102, 103

References

MDN · RFC 9110