Skip to Content
1
May 10, 2022 at 09:14 AM

REST sender adapter : custom error message for 403/401 http

449 Views

Hi Experts,

I have a requirement of REST to Proxy sync scenario.

Trying to set custom error response in REST sender adapter upon an exception for http codes 401/403.

I tried adding in error handling for 500 internal error and it is working as expected but for 401/403 I am unable to produce the custom error message {"Status Code":"401", "Status Message":"Unauthorised"} , instead I get the standard response {

"error": { "code": "403", "message": "403 - Forbidden", "logID": "12344" }}Is there something like http_status available in REST sender?