Skip to Content
0
Jun 11, 2020 at 03:35 PM

Handling multiple exceptions in rest sender adapter

122 Views Last edit Jun 11, 2020 at 03:59 PM 3 rev

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.

error1.png

error2.png

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

Attachments

error1.png (16.5 kB)
error2.png (15.6 kB)