Skip to Content
avatar image
Former Member

REST Adapter Customer Error Handling in JSON Format ?

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers