400 Bad Request: missing Host header
HTTP/1.1 requires a Host header, and the request didn't include one.
400 Bad Request missing Host headerClient sent HTTP/1.1 request without hostnameMissing Host header HTTP/1.1Bad Request: client sent HTTP/1.1 request without hostname Meaning
Seen with hand-written clients, raw sockets and some health checks. Add Host: example.com; for HTTP/1.0 tests with curl use -H "Host: ...". Load balancers may also send health checks without Host.
Common causes
- Raw socket or netcat request without Host
- Health check missing the header
- HTTP/1.1 client bug
- Proxy stripping the header
- Testing by IP address
⚡ Quick fix
- Send
Host: yourdomain.com - Configure the health check Host header
- Fix the client library
Detailed fix by platform
cURL
curl -i http://203.0.113.10/ -H "Host: example.com"
How to diagnose
- Host — Present?
- Health check — Has Host?
- Proxy — Strips it?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in HTTP
Other ways to find it
Where this error sits
Origin: Network. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 18 Nov 2026