# How to allow 404 server error to propagate to the user

**URL:** <https://www.ruby-forum.com/t/how-to-allow-404-server-error-to-propagate-to-the-user/237768>\
**Category:** NGINX\
**Created:** [November 28, 2013, 1:58pm UTC](https://www.ruby-forum.com/t/how-to-allow-404-server-error-to-propagate-to-the-user/237768 "2013-11-28T13:58:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [November 28, 2013, 1:58pm UTC](https://www.ruby-forum.com/t/how-to-allow-404-server-error-to-propagate-to-the-user/237768/1 "2013-11-28T13:58:17Z")

</div>

I am currently raising a 404 error from the backend server (running on  
port  
9000), but nginx, instead of giving the client the same 404 error,  
responds  
with a 505, but still send the body of the response that is returned  
from  
the server with the 404.

How do I fix this?

---

<div class="post-metadata">

**Author:** ![Debasish\_Ray\_Chawdh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/73ab20/32.png) [@Debasish\_Ray\_Chawdh](https://www.ruby-forum.com/u/Debasish_Ray_Chawdh)\
**Post date:** [November 28, 2013, 2:26pm UTC](https://www.ruby-forum.com/t/how-to-allow-404-server-error-to-propagate-to-the-user/237768/2 "2013-11-28T14:26:20Z")

</div>

The log created are as follows

14.141.60.139 - - [28/Nov/2013:13:24:13 +0000] “GET /afasdfadsfsadf  
HTTP/1.1” 505 5 “-” “Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0)  
Gecko/20100101 Firefox/25.0”  
14.141.60.139 - - [28/Nov/2013:13:24:19 +0000] “-” 400 0 “-” “-”

On Thu, Nov 28, 2013 at 6:27 PM, Debasish Ray Chawdhuri \<
