[ https://issues.apache.org/jira/browse/OLINGO-1380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17076825#comment-17076825 ]
Joshua Darnell commented on OLINGO-1380: ---------------------------------------- Apologies for the additional post, but I couldn't edit my previous comment. It looks like the second link got mangled. It should have been a link to the following code: [https://github.com/apache/olingo-odata4/blob/e3650599007a917890963fbec6a19b437d519e4d/lib/client-core/src/main/java/org/apache/olingo/client/core/communication/request/AbstractRequest.java#L64-L69] > OData V4: Response header information is lost in case of exceptions > ------------------------------------------------------------------- > > Key: OLINGO-1380 > URL: https://issues.apache.org/jira/browse/OLINGO-1380 > Project: Olingo > Issue Type: Bug > Reporter: Ramya > Priority: Major > > Whenever an exception occurs in client scenarios we throw > ODataClientErrorException with statusLine and ODataError. However, the > response header information is lost. > So have new API's in ODataClientErrorException to set and get header > information. > Also, currently if the response is in a Json format only then we can > deserialize the entity and form ODataError. > If the server returns the response as a plain text, then also make provision > to include this information in ODataError object. -- This message was sent by Atlassian Jira (v8.3.4#803005)