HTTP
421 - Misdirected Request
HTTP 421 Misdirected Request means the request reached a server that is not able to produce a response for the target authority.
Last reviewed: February 12, 2026|Editorial standard: source-backed technical guidance
What Does Misdirected Request Mean?
The request arrived over a connection bound to a different authority, so the receiving server cannot safely serve this target name.
Common Causes
- -Connection reuse sends request to wrong authority backend.
- -TLS SNI and Host authority mapping are inconsistent.
- -Virtual host routing is misconfigured on gateway or load balancer.
How to Fix Misdirected Request
- 1Retry the request on a fresh connection scoped to the correct authority.
- 2Align `Host` header, TLS SNI, certificate SAN coverage, and virtual-host routing tables.
- 3Disable or tune unsafe connection coalescing that reuses one connection across incompatible authorities.
Step-by-Step Diagnosis for Misdirected Request
- 1Capture request authority details (`Host`, SNI, resolved target, connection ID) for 421 events.
- 2Inspect ingress and origin virtual-host mappings for authority-to-backend mismatch.
- 3Trace HTTP connection reuse/coalescing behavior in clients and intermediaries.
- 4Retest with isolated per-authority connections and confirm routing consistency.
Authority and TLS Identity Alignment
- -Verify certificate SAN and SNI coverage for requested authority (example: wildcard cert missing specific subdomain routed on shared edge).
- -Check Host-to-backend mapping rules (example: one Host alias mapped to wrong upstream cluster).
Connection Reuse and Coalescing Controls
- -Inspect HTTP/2 or shared-connection coalescing decisions (example: client reuses connection for different authority not accepted by origin).
- -Audit proxy connection pool keying (example: pool keyed by IP only, not authority, causing misdirected requests).
Implementation Examples
Reproduce HTTP 421 Misdirected Requestcurl
curl -i -X GET https://api.example.com/v1/resource
# Response:
# HTTP/1.1 421 Misdirected Request
# {"error":"Misdirected Request","code":"421"}Handle 421 in JavaScriptjavascript
const response = await fetch('https://api.example.com/v1/resource', {
method: 'GET',
headers: { 'Accept': 'application/json' }
});
if (response.status === 421) {
console.error('Handle 421 Misdirected Request');
}Handle 421 in Pythonpython
import requests
response = requests.get(
'https://api.example.com/v1/resource',
headers={'Accept': 'application/json'}
)
if response.status_code == 421:
print('Handle 421 Misdirected Request')How to Verify the Fix
- -Re-run affected requests and confirm 421 is eliminated on fresh authority-correct connections.
- -Validate Host/SNI routing parity across all regions and ingress tiers.
- -Confirm connection pools no longer cross authorities incorrectly.
How to Prevent Recurrence
- -Standardize authority routing and certificate management across environments.
- -Add pre-deploy tests for Host/SNI alignment and per-authority connection behavior.
- -Continuously audit proxy/load-balancer pool keying and virtual-host configuration drift.
Pro Tip
- -include authority in every connection pool cache key to prevent accidental cross-host reuse under load.
Decision Support
Official References
Provider Context
This guidance is specific to HTTP services. Always validate implementation details against official provider documentation before deploying to production.