# Status code 000 in the logs

**URL:** <https://www.ruby-forum.com/t/status-code-000-in-the-logs/246247>\
**Category:** NGINX\
**Created:** [September 16, 2013, 6:22pm UTC](https://www.ruby-forum.com/t/status-code-000-in-the-logs/246247 "2013-09-16T18:22:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sadaf\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/858c86/32.png) [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Post date:** [September 16, 2013, 6:22pm UTC](https://www.ruby-forum.com/t/status-code-000-in-the-logs/246247/1 "2013-09-16T18:22:47Z")

</div>

What does status code 000 mean in the Nginx logs? I have the following  
in  
the config:

```
    location = /get-img.pl
    {
        limit_req zone=slow burst=10;
        proxy_pass http://service_perl;
    }

```

get-img.pl generates an image, writes it to disk and then returns  
“X-Accel-Redirect” to the image. Everything seems to be working just  
fine, I  
see delayed responses because of limit\_req in the logs (with code 200).  
Sometimes there are responses with code 503 for “greedy” clients that  
exceed  
the burst=10 parameter. All as expected.

However, occasionally I see a bunch of requests (around 5 to 20 within a  
few  
seconds of each other) with status code 000 and 0 for the body size in  
the  
logs. They are always from the same IP address for the entire bunch, so  
I’m  
guessing it’s requests that already went through internal  
“X-Accel-Redirect”  
redirect and then something happened. Connection aborted? Something  
else?  
Why not status code 503? That’s where you come in with a helpful  
explanation. 🙂

In case it is relevant:  
nginx version: nginx/1.4.2  
built by gcc 4.1.2 20080704 (Red Hat 4.1.2-54)  
TLS SNI support disabled  
configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx  
–conf-path=/etc/nginx/nginx.conf  
–error-log-path=/var/log/nginx/error.log  
–http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid  
–lock-path=/var/run/nginx.lock  
–http-client-body-temp-path=/var/cache/nginx/client\_temp  
–http-proxy-temp-path=/var/cache/nginx/proxy\_temp  
–http-fastcgi-temp-path=/var/cache/nginx/fastcgi\_temp  
–http-uwsgi-temp-path=/var/cache/nginx/uwsgi\_temp  
–http-scgi-temp-path=/var/cache/nginx/scgi\_temp --user=nginx  
–group=nginx  
–with-http\_ssl\_module --with-http\_realip\_module  
–with-http\_addition\_module  
–with-http\_sub\_module --with-http\_dav\_module --with-http\_flv\_module  
–with-http\_mp4\_module --with-http\_gunzip\_module  
–with-http\_gzip\_static\_module --with-http\_random\_index\_module  
–with-http\_secure\_link\_module --with-http\_stub\_status\_module  
–with-mail  
–with-mail\_ssl\_module --with-file-aio --with-ipv6 --with-cc-opt=‘-O2 -g  
-pipe -Wp,-D\_FORTIFY\_SOURCE=2 -fexceptions -fstack-protector  
–param=ssp-buffer-size=4 -m64 -mtune=generic’

Posted at Nginx Forum:

> **[Status code 000 in the logs](https://forum.nginx.org/read.php?2,242893,242893#msg-242893)**
>
> What does status code 000 mean in the Nginx logs? I have the following in the config: location = /get-img.pl { limit\_req zone=slow burst=10; proxy\_pass http://service\_perl; } get-img.pl gen

---

<div class="post-metadata">

**Author:** ![monkeybrain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/3d9bf3/32.png) [@monkeybrain](https://www.ruby-forum.com/u/monkeybrain)\
**Post date:** [September 16, 2013, 6:47pm UTC](https://www.ruby-forum.com/t/status-code-000-in-the-logs/246247/2 "2013-09-16T18:47:20Z")

</div>

Hello!

On Mon, Sep 16, 2013 at 12:22:17PM -0400, monkeybrain wrote:

> “X-Accel-Redirect” to the image. Everything seems to be working just fine, I  
> explanation. 🙂  
> It happens if client closes connection whily waiting for limit\_req  
> delay, and correct code to log is 499 (client closed request).  
> This is already fixed in 1.5.3 with the following commit:

> **[hg.nginx.org is decommissioned](http://hg.nginx.org/nginx/rev/aadfadd5af2b)**

–  
Maxim D.

> **[nginx: donation](http://nginx.org/en/donation.html)**
