Hello,
I would like to capture the error message or error code with what a particular policy has failed/falsified in the processing. Is there some kind of context variable which specifies the above required info.
Thank you!
Sravan,
Some time ago we started to add in audit context variables that are usable in policy. https://docops.ca.com/ca-api-gateway/8-3/en/context-variables/audit-context-variables What you would require is ${audit.details.last.fullText} as it shows the last audit detail in the policy but you need to design the policy to continue after the failure so that the audit is available.
Sincerely,
Stephen Hughes
Director, CA Support