400 HTTP Origin: Network OSI layer 7 · Application Last updated 18 Nov 2026

400 Bad Request: missing Host header

HTTP/1.1 requires a Host header, and the request didn't include one.

Exact message you may see 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
Seen on: HTTP Nginx Apache

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

  1. Send Host: yourdomain.com
  2. Configure the health check Host header
  3. Fix the client library

Detailed fix by platform

cURL

  1. curl -i http://203.0.113.10/ -H "Host: example.com"

How to diagnose

  1. Host — Present?
  2. Health check — Has Host?
  3. 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:

Where this error sits

Origin: Network. Errors that are often confused with or caused by this one (click to open):

102 — HTTP 102 Processing (HTTP)102400 — HTTP 400 Bad Request (HTTP)400400 — 400 Bad Request: Request Header Or Cookie Too Large (HTTP)400400 — 400 Bad Request: Invalid Hostname (HTTP)400400 — 400 Bad Request: invalid character in header (HTTP)400400 — 400 Bad Request: multipart boundary not found (HTTP)400421 — HTTP 421 Misdirected Request (HTTP)421HAProxy backend — HAProxy: SSL handshake failure on the backend (verify required, no CA file, SNI missing) (SSL / TLS)HAProxy backend400

Explore the map of this error Full error map →

🧠 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.