Posted: 30 Aug 2019 9:49 EDT Last activity: 30 Jan 2020 21:27 EST
It's possible to set custom error messages and codes using PEGA Datapage API?
I'm using PEGA Datapage API to expose data to another system, for this I use a data page called D_DocumentPackage, when I receive a request with the ID=D_DocumentPackage and a query param caseId="XXXXX"
the activity that is used as a source of the Data page fetch de data from the case an map in the Data page. The problem is that I can't set a StatusError for instance 404 when there is no result in the searching. Same issue for the error message.
***Edited by Moderator Marissa to update platform capability tags; add SR Details****
Without this the API is not responding with correct response codes. e.g. If the datapage takes a param ID . If you pass a wrong ID the API gives 500 which is not correct for the consumer of this service. @MarissaRogers can we raise an enhancement request for this please?