Archana Rai created OLINGO-1256:

             Summary: Error code improvements 
                 Key: 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

Reply via email to