<div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">I understand the logic, but when using that handler through error_page 404 @404, won't the handler's 200 status overload the original 404 one?<br>

</div></div><div class="gmail_extra"><br clear="all"><div><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>


<br><br><div class="gmail_quote">On Tue, May 13, 2014 at 4:37 PM, Valentin V. Bartenev <span dir="ltr"><<a href="mailto:vbart@nginx.com" target="_blank">vbart@nginx.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="HOEnZb"><div class="h5">On Tuesday 13 May 2014 15:30:56 B.R. wrote:<br>
> > Instead of using 3rd-party echo module, you can utilize the return<br>
> > directive<br>
> ><br>
> > for the same purpose:<br>
> >   return 200 '{"status": "Not Found"}';<br>
> ><br>
> > Reference: <a href="http://nginx.org/r/return" target="_blank">http://nginx.org/r/return</a><br>
> ><br>
> >   wbr, Valentin V. Bartenev<br>
><br>
> ​I would have intuitively written code 404 rather than 200 on this one<br>
> since the aim is to send a 404 error answer.​<br>
> Am I wrong? Would that loop?<br>
><br>
<br>
</div></div>I wrote an equivalent of "echo".  The logic is that in this handler we provide<br>
the page for 404 which actually exists.<br>
<br>
   wbr, Valentin V. Bartenev<br>
<br>
_______________________________________________<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" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a></blockquote></div><br></div>