class CmsAspspExceptionHandler extends ResponseEntityExceptionHandler {

    @Override
    protected ResponseEntity<Object> handleHttpMessageNotReadable(HttpMessageNotReadableException ex,
                                                                  HttpHeaders headers,
                                                                  HttpStatus status,
                                                                  WebRequest request) {
        log.error(ex.getMessage());
        return ResponseEntity
                   .status(HttpStatus.BAD_REQUEST)
                   .body(ERROR_MESSAGE);
    }

}