How to return custom error response from default handler
Content
Hi All,
I have created an app driven integration for creating a requisition where end user will pass the request payload and in the response i am passing the requisition number and success message in case of success which i have defined in response payload of the rest trigger.Now let suppose if any error occurred while creating the requisition and goes to default handler then how can i send the error response in the response payload that i have given in the rest Trigger.I have checked that return action is not dragged in the default handler option.
Tagged:
0