101
HTTP 101 Switching Protocols
1xx Informational
- Home
- > HTTP Status Codes >
- > 1xx >
- 101
Blog
Encoder & Decoder
Utility
General
- SMS Counter
- Check String Length
- Password Generator
- CHMOD Calculator
- Cron Job Command Generator
- Shortened URL Checker
- RGB to HEX Converter
- Epoch Unix Timestamp Converter
- UUID & ULID Generator
- Timezone Converter
Image Tools
PDF Tools
Minifier
Web Dev
- QR Code Generator
- Barcode Generator
- Lorem Ipsum Generator
- HTML Entities
- MIME Types Table Reference
- HTTP Status Codes
- What Is My IP Address
- JSON Formatter & Validator
- SQL Formatter & Beautifier
- XML Formatter & Beautifier
- YAML Formatter & Beautifier
- Text Case Converter
- JSON to CSV Converter
- Clipboard Workspace
- JSON Validator & Repair
- JSON Schema Validator
Laravel
- All Laravel Tools
- Collection Playground
- Eloquent Relationship Generator
- Validation Rule Generator
- Migration Generator
- Scheduler Generator
- Middleware Pipeline Visualizer
- Eloquent Query Builder Generator
- Laravel Artisan Cheat Sheet
Tailwind
1xx Informational
RFC 7231, Section 6.2.2
What is HTTP 101 Switching Protocols?
The 101 (Switching Protocols) status code indicates the server understands and is willing to comply with the client's request to switch protocols. The server will include an Upgrade header to indicate which protocol it is switching to. This is the cornerstone of WebSocket connections — when a client sends an Upgrade: websocket header, the server responds with 101 to confirm the protocol switch from HTTP to WebSocket, enabling real-time bidirectional communication.
Common Use Cases
- WebSocket upgrade handshake
- HTTP/2 protocol upgrade
- Adding real-time communication to web applications