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?