MCPcopy
hub / github.com/redis/redis-py / HttpError

Class HttpError

redis/http/http_client.py:51–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49
50
51class HttpError(Exception):
52 def __init__(self, status: int, url: str, message: Optional[str] = None):
53 self.status = status
54 self.url = url
55 self.message = message or f"HTTP {status} for {url}"
56 super().__init__(self.message)
57
58
59class HttpClient:

Callers 2

_json_callMethod · 0.85

Calls

no outgoing calls