<div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">Sending 404 allows providing body content, and displaying beautiful pages is not restricted to 200. Thus, I do not get the 200 status sent to clients.<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">My suggestion would be sending the same HTTP status code to everyone, choosing the most semantically correct in doing so.<br></div><div class="gmail_extra"><br><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">We are drifting away from the topic, though.<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">You got some technical answers to your original question, the rest remains out of scope.​</div><div><div class="gmail_signature" data-smartmail="gmail_signature"><font size="1"><span style="color:rgb(102,102,102)">---<br></span><b><span style="color:rgb(102,102,102)">B. R.</span></b><span style="color:rgb(102,102,102)"></span></font></div></div>
<br><div class="gmail_quote">On Mon, Aug 8, 2016 at 12:15 PM, msonntag <span dir="ltr"><<a href="mailto:nginx-forum@forum.nginx.org" target="_blank">nginx-forum@forum.nginx.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey B. R.,<br>
<br>
Thanks for your reply! I will have a look at the provided resources.<br>
<br>
As per your comment:<br>
<br>
> I find it strange you oppose HTTP 404 with 'a proper status code': 404 is<br>
a 'proper' status code.<br>
> I find it even stranger you want to lie to search engines crawlers about<br>
the existence of your resource.<br>
<br>
Maybe my wording was just misleading. Of course 404 is a "proper" status<br>
code and my posting was all about how to be able to return the appropriate<br>
code (404 in case the item does not exist) to the crawler instead of the 200<br>
that it will see if I just deliver the client application and show a "soft"<br>
404 error – which is my current setup which I want to improve by checking<br>
the item's existence prior to delivering the response.<br>
<br>
Thanks again.<br>
<br>
Posted at Nginx Forum: <a href="https://forum.nginx.org/read.php?2,268827,268829#msg-268829" rel="noreferrer" target="_blank">https://forum.nginx.org/read.<wbr>php?2,268827,268829#msg-268829</a><br>
<br>
______________________________<wbr>_________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/<wbr>mailman/listinfo/nginx</a></blockquote></div><br></div></div>