private ErrorResponse constraintViolationExceptionToErrorResponse(
            ConstraintViolationException exception) {
        ErrorResponse errorResponse = new ErrorResponse();
        errorResponse.setStatus(HttpStatus.BAD_REQUEST.value());
        errorResponse.setMessage("Validation failed, check below errors for detail.");

        List<ValidationError> validationErrors = new ArrayList<>();

        exception
                .getConstraintViolations()
                .forEach(
                        e ->
                                validationErrors.add(
                                        new ValidationError(
                                                getViolationPath(e),
                                                e.getMessage(),
                                                getViolationInvalidValue(e.getInvalidValue()))));

        errorResponse.setValidationErrors(validationErrors);
        return errorResponse;
    }
This class converts Hibernate {@link ValidationException} into http response.
rest/src/main/java/com/netflix/conductor/rest/controllers/ValidationExceptionMapper.java