Hi,
I've a dispatcher configured to enable a list of HTTP headers that Dispatcher passes from the client HTTP request to the renderer.
On 2XX HTTP request the headers are present on every response.
The issue is when we try to use the same mechanism on 4XX or 5XX http requests. The dispatcher/apache simply deletes or don't cares to any custom header.
No ErrorDocument or redirect is defined on apache, and mod_headers is not overwritten the headers.
Can you please help?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi Jörg,
Yes we want to add specific headers to 4XX or 5XX responses.
After more digging I find out DispatcherPassError property. After configure it to DispatcherPassError 300-308,400-431,502-511 dispatcher started to expose our custom errors on 500 and 501 HTTP errors.
Can you just clarify if there any adobe concerns regarding this configuration?
Views
Replies
Total Likes
Jörg Hoh can you have a look at this Dispatcher's issue!!
Views
Replies
Total Likes
I failed to understand what you want to achieve.
The mentioned configuration only deals with request headers forwarded from the dispatcher to the AEM instance (not with headers AEM attaches to responses). And the dispatcher doesn't know upfront about the status code of the response.
Do you want to add specific headers to 4xx or 5xx responses?
Views
Replies
Total Likes
Hi Jörg,
Yes we want to add specific headers to 4XX or 5XX responses.
After more digging I find out DispatcherPassError property. After configure it to DispatcherPassError 300-308,400-431,502-511 dispatcher started to expose our custom errors on 500 and 501 HTTP errors.
Can you just clarify if there any adobe concerns regarding this configuration?
Views
Replies
Total Likes
I cannot speak for Adobe, only for myself :-)
It looks ok for me, but I wonder why you need special headers in these responses.
Jörg
Views
Replies
Total Likes
Ok thank you for the answer.
500 Status is way to generic to be compliant with all functional error scenarios, so we add more error information, allowing the site to behave properly.
Views
Replies
Total Likes