Question

3
Replies
1422
Views
Syed Sufwanullah Hussaini (SyedH719)
Accenture

Accenture
US
SyedH719 Member since 2013 2 posts
Accenture
Posted: February 18, 2019
Last activity: July 7, 2020
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***

Case Management Data Integration Support Case Exists