cancel
Showing results for 
Search instead for 
Did you mean: 

REST Adapter Customer Error Handling in JSON Format ?

Former Member
0 Kudos

Hi ,

I have a REST to REST Scenario. By using Error Handling Tab in the Communication Channel , I am able to get the custom error text. But, the content type seems to be only 'Text'. When I try to write the custom error message in the below format (JSON) as per the sender requirement, I am getting the error - "Invalid variable name { ..}." .Could you please help on how to handle curly braces?

custom error message:

------------------------------------------------------------------

{

"errors": [

{

http status {http_status},

http status text {http_status_text}

}

] }

----------------------------------------------------------------------

Regards,

Prem

Accepted Solutions (0)

Answers (0)