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.
Hello @RakeshSudhagoni, we truly appreciate your post and your patience as we keep track of your question. We’ll make sure you get the answers you need, and we also invite the community to pitch in with their thoughts
@RakeshSudhagoni - Take a look at this sample
Hi @ssvaidyanathan , Above bundle seems, it handles few exceptions only and I am working for all for customized error responses. Also, trying to remove prefix from error.message...
Example:
@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.