fastcgi_pass / error page /error code in HTTP rsp

nginxuser100 nginx-forum at
Tue Jun 9 00:13:03 UTC 2015

Hi, I expected fastcgi_intercept_errors to return a static error page AND to
have include the HTTP error code (e.g. 400) in the HTTP response header.
>From what I see, it returns the static error page but with 200 OK.
Is it the expected behavior?
If yes, is there a way to have nginx return the error page and the error
code to the client?
Thank you!

Posted at Nginx Forum:,259436,259456#msg-259456

More information about the nginx mailing list