You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

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>&lt;![CDATA[An error occurred while processing the response payload in the target REST endpoint.]]&gt;</ns0:errorPath><ns0:instance>&lt;![CDATA[Target REST endpoint response payload processing failed. -- java.lang.ClassCastException]]&gt;</ns0:instance></ns0:errorDetails></ns0:APIInvocationError>

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!