How to get error message from HCM Rest API in OIC
Summary
We cannot get the user friendly error from HCM Rest Api when getting a 400 Bad request i OICContent
We have tried to use the HCM Cloud Adapter i OIC calling rest Api for Create Absence record. We made a scope i OIC and are catching the fault by RestApiInvocation handler and listed all the values from the responce:
Type = http://www.w3.org/Protocols/rf
Instance = <![CDATA[The value of the attribute Employer or AbsenceType isn't valid..A 400 Bad Request Error indicates that the target service is unable (or refuses) to process the request sent by the client (Oracle Integration Cloud), due to an issue that is perceived by the server to be a client problem. You can trace the cURL representation of the request sent to the target service from the Oracle Integration Cloud server logs. Try invoking the target service using cURL. It may also be that one of the intermediaries (proxy, LBR) could be returning this code. ]]>