private static void onGoAway(Channel channel, String sentOrReceived,
                                 int lastStreamId, long errorCode, ByteBuf debugData) {
        if (errorCode == CODE_NO_ERROR) {
            if (logger.isDebugEnabled()) {
                logger.debug("{} {} a GOAWAY frame: lastStreamId={}, errorCode=NO_ERROR(0)",
                             channel, sentOrReceived, lastStreamId);
            }
            return;
        }

        if (logger.isDebugEnabled()) {
            final String logFormat = "{} {} a GOAWAY frame: lastStreamId={}, errorCode={}, debugData=\"{}\"";
            // Log the expected errors at DEBUG level.
            if (isExpected(errorCode, debugData)) {
                logger.debug(logFormat, channel, sentOrReceived, lastStreamId,
                             errorStr(errorCode), debugData.toString(StandardCharsets.UTF_8));
            } else if (logger.isWarnEnabled()) {
                logger.warn(logFormat, channel, sentOrReceived, lastStreamId,
                            errorStr(errorCode), debugData.toString(StandardCharsets.UTF_8));
            }
        }
    }
Returns {@code true} if the connection has received a GOAWAY frame with non-zero error code.
core/src/main/java/com/linecorp/armeria/internal/common/Http2GoAwayHandler.java