We are using REST adapter available for SAP PI 7.31 (SP15). We have configured the scenario and it is working fine for success case.
However, whenever there is any error pertaining to the data, we are getting HTTP 500 error in SAP PI and no other information about error.
To check the issue if I call the Web-Service using Postman with same payload, it gives the error code as 500. Also, it provides the error text saying that which field was having issue as shown in below screen shot:
Can we catch this error message anyhow in SAP PI and send it back to source system?