I am getting some issue with setResponseCode service. We can use this service to set specific response code for APIs and working fine. But same service when using inside catch block its not working and always setting default response code as 500. Is there any way to overcome this step.
Please Note: in catch block after using setResponseCode we are using Exit-flow to mark service as failure.