# Nginx missing response header on 400 bad request

**URL:** <https://www.ruby-forum.com/t/nginx-missing-response-header-on-400-bad-request/206280>\
**Category:** NGINX\
**Created:** [April 27, 2011, 5:36am UTC](https://www.ruby-forum.com/t/nginx-missing-response-header-on-400-bad-request/206280 "2011-04-27T05:36:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [April 27, 2011, 5:36am UTC](https://www.ruby-forum.com/t/nginx-missing-response-header-on-400-bad-request/206280/1 "2011-04-27T05:36:06Z")

</div>

nginx does not sent the response headers but only response body on 400  
bad request.

e.g.

$ nc 127.0.0.1 80  
GET HTTP/1.0

400 Bad Request
# 400 Bad Request

* * *
nginx/0.9.1

Posted at Nginx Forum:

> **[\[BUG\] nginx missing response header on 400 bad request](https://forum.nginx.org/read.php?2,193954,193954#msg-193954)**
>
> nginx does not sent the response headers but only response body on 400 bad request. e.g. $ nc 127.0.0.1 80 GET HTTP/1.0 \<html\> \<head\>\<title\>400 Bad Request\</title\>\</head\> \<body bgcolor="white"\>

---

<div class="post-metadata">

**Author:** ![xiezhenye](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/7993a0/32.png) [@xiezhenye](https://www.ruby-forum.com/u/xiezhenye)\
**Post date:** [April 27, 2011, 6:10am UTC](https://www.ruby-forum.com/t/nginx-missing-response-header-on-400-bad-request/206280/2 "2011-04-27T06:10:43Z")

</div>

On Tue, Apr 26, 2011 at 11:35:35PM -0400, xiezhenye wrote:

> # 400 Bad Request
> 
> * * *
> nginx/0.9.1

This is so called HTTP/0.9 response.  
There are no headers in HTTP/0.9.

$ nc [apache.org](http://apache.org) 80  
GET HTTP/1.0

400 Bad Request
# Bad Request

Your browser sent a request that this server could not understand.

* * *
Apache/2.3.8 (Unix) mod\_ssl/2.3.8 OpenSSL/1.0.0c Server at www.apache.org Port 80

–  
Igor S.
