sqlmapproject/sqlmap · error · H2ProtocolError
response field section lacks :status
Error message
response field section lacks :status
What it means
Error "response field section lacks :status" thrown in sqlmapproject/sqlmap.
Source
Thrown at lib/request/http2.py:884
if len(value) != 3 or not value.isdigit():
raise H2ProtocolError("invalid :status pseudo-field")
status = int(value)
if not 100 <= status <= 599:
raise H2ProtocolError("response status is outside the valid range")
if status == 101:
raise H2ProtocolError("101 Switching Protocols is not valid in HTTP/2")
else:
regular_seen = True
if name.lower() != name:
raise H2ProtocolError("uppercase HTTP/2 field name")
_validate_regular_name(name)
if name in _CONNECTION_FIELDS:
raise H2ProtocolError("connection-specific field in HTTP/2 response")
content_length = _parse_content_length(headers, trailers=trailers)
if trailers:
return None, None
if status is None:
raise H2ProtocolError("response field section lacks :status")
return status, content_length
class _ResponseState(object):
def __init__(self, stream_id, request_method):
self.stream_id = stream_id
self.request_method = _as_bytes(request_method)
self.block = None
self.block_end_stream = False
self.headers = None
self.trailers = []
self.informational_count = 0
self.informational_bytes = 0
self.status = None
self.expected_content_length = None
self.body_forbidden = False
self.body = bytearray()
self.recv_window = LOCAL_INITIAL_WINDOWView on GitHub (pinned to 0a35b20e39)
When it happens
Trigger: Thrown at lib/request/http2.py:884 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of sqlmapproject/sqlmap@0a35b20e39 (2026-08-26).
Data as JSON: /api/errors/09694f829666d8bb.
Report an issue: GitHub.