Did anyone try changing HTTP Status COde from 200 to 4XX or 5XX in process in case OOB event for exception is triggered?
I have created process in Workbench where we are consuming JSON as body input and passing it through few business specific exceptions and OOB provided Exceptions like FileUtilsExceptions, Since processis invoked correctly but some validation failure or file operations failure can we pass the response with error description and HTTP STATUS code to != 200
AEM 6.2 on JBOSS
Are these answers useful? Help other community members by marking useful answers as accepted.
thanks, I got solution by not handling exception (routing to SetValue operation and setting custom error response) instead I left process to show real error as text/HTML response with http status code 500.
This is a work around as for every error in process we are getting 500 http status code and we cannot override with our custom response.