Hi Scott,
Thanks for the Info. Yes, I am talking about junctioned Web server. If you are talking about creating JSON pages.
Also when you say we need to create a JSON page, you means for all error codes we need to create JSON pages under Managment/C pages?
How can we add "errorReasonCode": "","errorReasonDesc":""} in to JSON?
{
"error_code" : "%ERROR_CODE%",
"error_message" : "%ERROR_TEXT%"
}
------------------------------
Venugopal Peram
------------------------------
Original Message:
Sent: Sun January 21, 2024 03:58 PM
From: Scott Exton
Subject: We would like to transform any non HTTP 200 status code into JSON.
Venuogopal,
Are you talking about changing any non-200 response which is streamed back from a junctioned Web server, or any WebSEAL generated response?
If you are talking about a WebSEAL generated response, WebSEAL currently supports JSON generated responses. You just need to create the appropriate template pages (with a .json extension), and then ensure that the HTTP 'accept' header has been set to application/json (see https://www.ibm.com/docs/en/sva/10.0.7?topic=configuration-content-aware-server-responses).
If you are talking about streamed junction responses you can do this using HTTP transformation rules – although I would recommend using the newer Lua transformation rules instead of the older XSLT format.
I hope that this helps.
Scott A. Exton
Senior Software Engineer
Chief Programmer - IBM Security Verify Access
IBM Master Inventor
Original Message:
Sent: 1/19/2024 2:01:00 PM
From: Venugopal Peram
Subject: We would like to transform any non HTTP 200 status code into JSON.
We would like to transform any non HTTP 200 status code into JSON. In the format of: "errorReasonCode": "","errorReasonDesc":""}
Is there any possibility we can do in ISVA?
------------------------------
Venugopal Peram
------------------------------