protected ResponseEntity handleHttpMessageNotReadable()

in src/main/java/com/epam/digital/data/platform/bphistory/service/api/exception/ApplicationExceptionHandler.java [98:105]


  protected ResponseEntity<Object> handleHttpMessageNotReadable(
      HttpMessageNotReadableException exception, HttpHeaders headers, HttpStatus status,
      WebRequest request) {

    log.error("Request body is not readable JSON", exception);
    return ResponseEntity.status(HttpStatus.BAD_REQUEST)
        .body(newDetailedResponse(ResponseCode.CLIENT_ERROR));
  }