Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
(Java) V4 4.5.0
-
None
Description
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.