code: def _read_http_rst_stream(self, size, kind, flag):
          
          if size != 8:
              raise ProtocolError(f'HTTP/2: [Type {kind}] invalid format', quiet=True)
          if any((int(bit, base=2) for bit in flag)):
              raise ProtocolError(f'HTTP/2: [Type {kind}] invalid format', quiet=True)
  
          _code = self._read_unpack(4)
  
          data = dict(
              flags=None,
              error=_ERROR_CODE.get(_code, _code),
          )
  
          return data
docs: Read HTTP/2 RST_STREAM frames.
  
          Structure of HTTP/2 RST_STREAM frame [RFC 7540]:
              +-----------------------------------------------+
              |                 Length (24)                   |
              +---------------+---------------+---------------+
              |   Type (8)    |   Flags (8)   |
              +-+-------------+---------------+-------------------------------+
              |R|                 Stream Identifier (31)                      |
              +---------------------------------------------------------------+
              |                        Error Code (32)                        |
              +---------------------------------------------------------------+
  
              Octets      Bits        Name                    Description
                0           0     http.length             Length
                3          24     http.type               Type (2)
                4          32     http.flags              Flags
                5          40     -                       Reserved
                5          41     http.sid                Stream Identifier
                9          72     http.error              Error Code