How to configure TIBCO API Exchange Gatewa y(APIX-G) to send error responses in JSON format.
book
Article ID: KB0085530
calendar_today
Updated On:
Products
Versions
TIBCO API Exchange
-
Not Applicable
-
Description
Description: This article describes ways to configure APIX-G to send an error response in JSON format.
Resolution
If the Target Service is returning an error with a JSON payload, then APIX-G can send it as it is to the client if the property below is set in asg.properties file:
If the error is generated in APIX-G itself, then it would send a response in JSON format if the accept header,in the incoming request, is set as: ------------- accept: application/json, text/javascript, */*; q=0.01 -------------
Issue/Introduction
How to configure TIBCO API Exchange Gatewa y(APIX-G) to send error responses in JSON format.