All,
What is the expected behavior if I use a set_uri in header_filter_by_lua context. Following is what I am trying to achieve,
if response.status != 200 then
ngx.req.set_uri(/404_page.html)
end
due to operational limitations I cant use the regular error page logic offered by default nginx and has to be in lua.
Condition is simple, check response status for any non 200 from origin send it to 404 error page.
Thank you in advance for any help.