I am trying to change the HTTP status that is sent when I send a
response to a FastCGI query. In the nginx configuration file, I have
When generating my return stream, which is done in C++, the first part
of response is:
I have also tried:
“Status: 201 Created\r\n”
as well as different combinations of \n and \r\n following the header.
In all cases, HTTP/1.1 200 OK is set as the Status and the body of the
response contains the string I’ve tried to use as my header. Any hints
as to what I may be doing wrong?
Posted at Nginx Forum: