Hi,
Iam doing exception handling in APIGEE, I implemented below JS to handle few errors. Also I want to remove the prefix for "ErrorDescription" field from the dynamic error responses.
Please let me know, if anyone have any standard or suggested approach to handle all exceptions in single JS policy.
Thanks in Advance.
Solved! Go to Solution.
@RakeshSudhagoni - Take a look at this sample
@RakeshSudhagoni - I've added more to the sample now. Please take a look. Also I dont think its a good idea to reveal the Regex to the end user. A hacker could try something else outside of this Regex if needed. Apigee returns this for info which needs to be converted into a custom message while sending to the client.