private boolean shouldReportError(Reply reply) {
        Error error = reply.getError(0);
        return switch (error.getCode()) {
            case DocumentProtocol.ERROR_BUCKET_NOT_FOUND, DocumentProtocol.ERROR_BUCKET_DELETED -> false;
            default -> true;
        };
    }
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