public Set<Integer> getErrorCodes() {
        Set<Integer> errorCodes = new HashSet<>();
        for (Error error : errors) {
            errorCodes.add(error.getCode());
        }
        return errorCodes;
    }
Retrieves a set of integer error codes
messagebus/src/main/java/com/yahoo/messagebus/Reply.java