Posted: 18 Feb 2019 10:22 EST Last activity: 7 Jul 2020 10:35 EDT
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***