You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Archana Rai (JIRA)" <ji...@apache.org> on 2018/04/11 07:56:00 UTC

[jira] [Created] (OLINGO-1256) Error code improvements

Archana Rai created OLINGO-1256:
-----------------------------------

             Summary: Error code improvements 
                 Key: OLINGO-1256
                 URL: https://issues.apache.org/jira/browse/OLINGO-1256
             Project: Olingo
          Issue Type: Improvement
          Components: odata4-server
    Affects Versions: (Java) V4 4.5.0
            Reporter: Archana Rai
             Fix For: (Java) V4 4.5.0


The createServerErrorObject(final ODataLibraryException e, final Locale requestedLocale) API takes the parameter ODataLibraryException as parameter. We already know that the SerializerException and DeserializerException should result in 400 bad request. Still in the implementation we just add 500 Internal server error. We can set the status code as 400 when the type of exception is related to serialization or deserialization. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)