code: @ExceptionHandler(HttpMessageNotReadableException.class)
      public ResponseEntity<ExceptionInfo> handleHttpMessageNotReadableException(final HttpServletRequest request,
              final Exception ex) {
          logRequest(request, ex);
          final ExceptionInfo response = createExceptionInfo(new MessageNotReadableException());
          return new ResponseEntity<>(response, HttpStatus.BAD_REQUEST);
      }
docs: Method for handling exception of type HttpMessageNotReadableException
  which is thrown in case the request body is not well formed and cannot be
  deserialized. Called by the Spring-Framework for exception handling.
  
  @param request
  the Http request
  @param ex
  the exception which occurred
  @return the entity to be responded containing the exception information
  as entity.