I have a AEM author instance that sits behind an apache server with the dispatcher module. This has been setup and working for a long time. I have reviewed various forum threads on the subject.
The problem I just discovered is that wcm commands that send an error back to the client using HtmlStatusResponseHelper are being over written by apache.
When I access AEM instance directly and the wcm command sends an error message, with a response error code of 500, I can see the text as a pop up message in the siteadmin.
In the same scenario, When I access AEM instance through apache, the content is overwritten by apache's internal server html content.
I have tried finding a way to disable apache's error code handling and prevent the overwrite of the html content generated by AEM.
How can the AEM generated 500 error content be returned through apache ?