default ChannelFuture writeReset(int id, int streamId, Http2Error error) {

        if (isClosed()) {
            return newClosedSessionFuture();
        }

        return doWriteReset(id, streamId, error);
    }
Resets the specified stream. If the session protocol does not support multiplexing or the connection
is in unrecoverable state, the connection will be closed. For example, in an HTTP/1 connection, this
will lead the connection to be closed immediately or after the previous requests that are not reset.
core/src/main/java/com/linecorp/armeria/internal/common/HttpObjectEncoder.java