I have a custom FastCGI application behind Nginx and I'm struggling to get Nginx to return anything other than a 200 status code.
I've tried the following:
Setting fast_cgi_intercept_errors on.
Returning codes via
ApplicationStatusin theEndRequest.Returning Errors on the StdError stream.
Sending any of following headers:
"Status: 404 Not Found"
"HTTP/1.1 404 Not Found"
"X-PHP-Response-Code: 404"
"Status: 404 Not Found;"
"HTTP/1.1 404 Not Found;"
"X-PHP-Response-Code: 404;"
Any help would be great, I'm very stuck.