SyedH719 Member since 2013 2 posts
Posted: 1 year ago
Last activity: 3 months 2 weeks ago

Custom error response in Pega API

We are using Pega API(api • v1 • cases REST service) to create new cases. In our case type flow, we have added logic to do some validations. If any of the validations fails then we have to send a 4xx response code and exact validation error.

When we looked at the rules related to Pega API, it doesn't looks like we can send any custom message to the client. There is a pzSetErrorDetail decision table used by Pega API to determine Pega API Error code but it is a final rule.

Does anyone know an approach to send custom error response in Pega API?

***Edited by Moderator Marissa to update SR Details***

Case Management Data Integration SR Exists
Share this page LinkedIn