Mapping API fault into custom fault format instead of OIC default fault format
Summary
Getting exact error format that API gives as OIC errorContent
Error that I get from OIC:
{
"title": "Internal Server Error",
"detail": "Internal server error. Please contact oracle support for details.",
"o:errorCode": "500",
"o:errorDetails": [
{
"type": "UnMappedFault:execute",
"instance": "NA",
"title": "Fault Details : \n<ns2:APIInvocationError xmlns:ns2=\"http://xmlns.oracle.com/cloud/generic/rest/fault/REST/Microsoft_Graph_Employee\"><ns2:type/><ns2:title/><ns2:detail/><ns2:errorCode/><ns2:errorDetails><ns2:type>http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1</ns2:type><ns2:title>Bad Request</ns2:title><ns2:errorCode>400</ns2:errorCode><ns2:errorPath><![CDATA[GET
Tagged:
0