Implementing json Rest API as a Servlet Status Code eg 404 json Response overwritten by Default Error Page
Hi,
I am using AEM as a Cloud Service and my Portal relies heavily on dynamic data, which I am offering by json Rest Services developed in AEM as well.
Best Practice is for REST to use HTTP Statuscodes, such as 404 for not found, or 400 for validation errors.
If I develop locally in my author instance everything is working fine. I get my defined json responses for eg 404.
However in the Cloud I am receiving the standard AEM 404 Error Page instead.
Any idea how I may convince Dispatcher ?? to just pass through my 404 json response returned by Servlet ?
thanks a for your support in advance
--
Volker