As per the http header module's documentation ([url=http://wiki.nginx.org/NginxHttpHeadersModule]link[/url]) the add_header directive does not work for 40x and 50x error pages.
Is there a specific reason for this? Will the ability to use this directive in error pages be added later on?
This is something that is required by my project since NGINX is responsible for serving error pages and we need to set specific cookies when the error page is displayed.
There is also a post on the ruby nginx forums ([url=http://www.ruby-forum.com/topic/180810#new]link[/url]) with this issue without a satisfactory answer.
Any information on the issue would be appreciated.