When utilizing the Service Layer to post, for example, an order, I person elaborate mistake messages akin to what is displayed successful the SAP Business One (SBO) lawsuit if thing is not correct.
Now, I’m trying to migrate to the API Gateway to leverage caller resources similar reports. However, I’ve encountered an contented with mistake handling. In lawsuit of an error, I lone person a "503 Service Unavailable" effect code, accompanied by the pursuing effect body:
{"code":503,"message": "Internal Server Error resulted from Runtime Exception"}And it's the aforesaid for immoderate endpoint oregon immoderate benignant of error.
How tin I get much meaningful mistake messages erstwhile utilizing the API Gateway, akin to what is provided by the Service Layer?