HTTP Code: 101 (Switching Protocols)
HTTP Status Code Reference
Status Category
1xx — Informational
Meaning & Definition
The requester has asked the server to switch protocols and the server has agreed to do so.
Common Causes
- WebSocket upgrade handshakes
- HTTP/1.1 to HTTP/2 upgrade requests
How to resolve HTTP code errors
1. Inspect Logs: Check server logs (e.g. error.log) to locate runtime exceptions or database disconnects.
2. Test Endpoint: Use our Uptime Checker or redirects prober to verify response headers and payload size.
3. Configure Rules: Implement custom redirect rules or error fallback paths below in Nginx/Apache config.
Nginx Configuration Setup
proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade";
Apache Configuration Setup
RewriteEngine On
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule /(.*) ws://localhost:3000/$1 [P]HTTP Diagnostic Tools
Authoritative Standards
IETF RFC 9110 — HTTP Semantics (June 2022, current standard)MDN Web Docs — HTTP Response Status Codes ReferenceIANA HTTP Status Code Registry
HTTP status codes standardized in RFC 9110. IANA maintains the official registry of all assigned codes.