Score:0

change status code in nginx response

cf flag

I have a need to replace the status code in proxied response (500 => 404) but keep original body and request method.

I looked at error_page directive but it's not suitable because it changes request method to GET and returns in body content provided by given URI.

So, any thoughts will be highly appreciated.

djdomi avatar
za flag
please be more specific about the issue, what are you trying to solve?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.