It seems in my previous post the way I was sending error response was not the way UI was expecting it so I had to refactor code and used hibernate validator but it posed some issues in exception validation. The code in REST api changed to public Response search(@Context User user, FolderSearchRequest folderSearchRequest) throws ApplicationException { Set<ConstraintViolation<FolderSearchRequest>> violationResult = validator.validate(folderSearchRequest); if (!violationResult.isEmpty()) { Set<ConstraintViolation<?>> violations = new HashSet<ConstraintViolation<?>>(violationResult); throw new ValidationException(violations); } and the pojo changed to @Data @AllArgsConst...