def _read_http_rst_stream(self, size, kind, flag):
if size != <NUM_LIT:8>:<EOL><INDENT>raise ProtocolError(f'<STR_LIT>', quiet=True)<EOL><DEDENT>if any((int(bit, base=<NUM_LIT:2>) for bit in flag)):<EOL><INDENT>raise ProtocolError(f'<STR_LIT>', quiet=True)<EOL><DEDENT>_code = self._read_unpack(<NUM_LIT:4>)<EOL>data = dict(<EOL>flags=None,<EOL>error=_ERROR_CODE.get(_code, _code),<EOL>)<EOL>return data<EOL>
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