code: public static void sendRstFrame(ChannelHandlerContext ctx, Http2ConnectionEncoder encoder, int streamId)
              throws Http2Exception {
          encoder.writeRstStream(ctx, streamId, Http2Error.NO_ERROR.code(), ctx.newPromise());
          encoder.flowController().writePendingBytes();
          ctx.flush();
      }
docs: Sends {@link org.wso2.transport.http.netty.message.Http2Reset} frame with `NO_ERROR` error code.
  
  @param ctx      the channel handler context
  @param encoder  the HTTP2 connection encoder
  @param streamId id of the stream need to be send RST_FRAME
  @throws Http2Exception if a protocol-related error occurred