Error Codes Wiki

HTTP 101 Switching Protocols Explained

Informational1xx informational

Overview

HTTP 101 Switching Protocols indicates the server is changing protocols as requested by the client.

Key Details

  • Status: 101 Switching Protocols
  • Category: 1xx Informational
  • Server agrees to switch protocols
  • Common with WebSocket upgrades

Common Causes

  • Client requested protocol upgrade via Upgrade header
  • WebSocket connection handshake
  • HTTP/2 upgrade from HTTP/1.1
  • Server agrees to the protocol change

Steps

  1. 1Usually seen during WebSocket connections
  2. 2Verify Upgrade header is set correctly
  3. 3Check that server supports the requested protocol
  4. 4Monitor WebSocket connection establishment

Tags

http-status1xx-informationalhttp-101httpstatus-code

More in 1xx Informational

Frequently Asked Questions

Most commonly during WebSocket connection upgrades from HTTP.