Hi All,
I need your inputs here. I have a pre-global policy with a UDP configured in it. For all incoming calls, this pre-global policy will call the UDP, and then the actual business API will be called.
The issue is, when I use content.reject for some conditions to throw errors (and do not catch that error in the catch block), it stops the processing of UDP and API. However, when I use context.reject and try to catch that error for a customized response in the catch block (e.g., JavaScript error or bad request error), I catch that error and set a customized error response in message.body. The message is set, but it continues with the processing of the Business API after the UDP , which I do not want in this case.
In case of any error in UDP, I want a customized error to be set and also stop the processing of UDP and Business API further.How can this be achieved?
------------------------------
vijaya k k
------------------------------