If I make a POST request with unspecified or wrong Content-Type, it returns 415 Unsupported Media Type and that's okay.
If I make a POST request with correct Content-Type (application/json) but with empty body, it still returns 415 Unsupported Media Type. I feel like that's where converter should throw syntax exception.
I wanted to see if it's the same with jackson:
- With unspecified Content-Type I get 500 Internal Server Error, didn't investigate but probably some syntax exception.
- With correct Content-Type but empty body returns 500 Internal Server Error.
Tired to investigate further, but there is some inconsistency with jackson and gson for sure.