Hi All,
In sync scenario, I have to handle multiple exceptions in REST sender adapter and the error needs to send user in JSON format.
Error codes: 401, 500,504
Below is my configuration in sender channel.
With the above configuration in PO it always throwing 401 error code for all failure messages because for both 401 and 500 we kept source as exception and there is no differentiation for both error codes.
Please suggest how to differentiate the error codes while sending the exceptions.
Regards,
Janardhan