code: def _read_http_goaway(self, size, kind, flag):
          
          _dlen = size - 8
          if _dlen < 0:
              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)
  
          _rsid = self._read_binary(4)
          _code = self._read_unpack(4)
          _data = self._read_fileng(_dlen) or None
  
          if int(_rsid[0], base=2):
              raise ProtocolError(f'HTTP/2: [Type {kind}] invalid format', quiet=True)
  
          data = dict(
              flags=None,
              last_sid=int(_rsid[1:], base=2),
              error=_ERROR_CODE.get(_code, _code),
              data=_data,
          )
  
          return data
docs: Read HTTP/2 GOAWAY frames.
  
          Structure of HTTP/2 GOAWAY frame [RFC 7540]:
              +-----------------------------------------------+
              |                 Length (24)                   |
              +---------------+---------------+---------------+
              |   Type (8)    |   Flags (8)   |
              +-+-------------+---------------+-------------------------------+
              |R|                 Stream Identifier (31)                      |
              +-+-------------+---------------+-------------------------------+
              |R|                  Last-Stream-ID (31)                        |
              +-+-------------------------------------------------------------+
              |                      Error Code (32)                          |
              +---------------------------------------------------------------+
              |                  Additional Debug Data (*)                    |
              +---------------------------------------------------------------+
  
              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     -                       Reserved
                9          73     http.last_sid           Last Stream ID
                13        104     http.error              Error Code
                17        136     http.data               Additional Debug Data (Optional)