private static boolean isErrorOfType(Reply reply, int errorCode) {
        return reply.getError(0).getCode() == errorCode;
    }
Return whether a (transient) error shall be exempt from visitor
error reporting. This to prevent spamming handlers and output with
errors for things that are happening naturally in the system.
@return true if the error should be reported
documentapi/src/main/java/com/yahoo/documentapi/messagebus/MessageBusVisitorSession.java