Exceptions with Accept-Type application/json will return JSON error.