OIC REST - invoke getting errored out if receive empty response
Summary:
REST_RES_PLD_ERR error throws when OIC invoke request-response setup, if empty response in service then 204 response core success is coming with empty payload that creating issue in OIC as OIC accepts response.
can it be possible to support 200 and 204 response code for the same REST call?
Content (please ensure you mask any confidential information):
<ns0:APIInvocationError xmlns:ns0=""><ns0:type/><ns0:title/><ns0:detail/><ns0:errorCode/><ns0:errorDetails><ns0:type/><ns0:title>Non-http status code</ns0:title><ns0:errorCode>REST_RES_PLD_ERR</ns0:errorCode><ns0:errorPath><![CDATA[An error occurred while processing the response payload in the target REST endpoint.]]></ns0:errorPath><ns0:instance><![CDATA[Target REST endpoint response payload processing failed. -- java.lang.ClassCastException]]></ns0:instance></ns0:errorDetails></ns0:APIInvocationError>