MCPcopy
hub / github.com/openai/openai-python / __init__

Method __init__

src/openai/_exceptions.py:87–90  ·  view source on GitHub ↗
(self, response: httpx.Response, body: object | None, *, message: str | None = None)

Source from the content-addressed store, hash-verified

85 status_code: int
86
87 def __init__(self, response: httpx.Response, body: object | None, *, message: str | None = None) -> None:
88 super().__init__(message or "Data returned by API invalid for expected schema.", response.request, body=body)
89 self.response = response
90 self.status_code = response.status_code
91
92
93class APIStatusError(APIError):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected