In web service controller errors are displayed in JSON even if the Content-Type is set to text/plain
Check Spring error handling configuration
Check Spring error handling configuration
In other cases BadRequest errors are converted in 406 errors (HttpMediaTypeNotAcceptableException: Could not find acceptable representation
), but the reason is the same
mentioned in commit 9e0d84c6
closed