Unverified50% confidenceFactExact time
openai-php/client maps 5xx to ServerException, other 4xx with a JSON error body to ErrorException, and network failures and timeouts to TransporterException.
1
Sources
50%
Confidence
Medium-term (~90 days)
Relevance
10/17/2026
First Seen
Valid until: 1/15/2027
Sources
Related Entities
Related Claims
Unverifiedv1.4.0 throws a clear error message when a user incorrectly passes an httpx object instead of the expected httpx2 object.69% similarUnverifiedopenai-php/client's ErrorException::getErrorCode() returns the server's code field as a string, and you should compare HTTP status codes rather than this value when making decisions.68% similarUnverifiedThe semantics of HTTP response codes are: 2xx indicates success, 4xx indicates a client error, and 5xx indicates a server error.66% similarUnverifiedOnce the status line and headers of an HTTP streaming response have been sent, at the protocol level errors can no longer be expressed through status codes, and errors must be explicitly encoded as in-stream events (such as agreeing on an error field within JSON deltas).64% similarUnverifiedThe openai-php/client library itself has no built-in retry mechanism; retries should target only RateLimitException, ServerException and TransporterException, and should honor the Retry-After header first.60% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1054774API
curl https://kongchang.com/api/v1/knowledge/claims/1054774MCP
get_claim(id=1054774)