Unverified50% confidenceDecision RuleExact time
openai-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.
1
Sources
50%
Confidence
Medium-term (~90 days)
Relevance
10/17/2026
First Seen
Valid until: 1/15/2027
Sources
Related Entities
Related Claims
Unverifiedopenai-php/client maps HTTP 429 to RateLimitException, the raw response is available via $e->response, and the Retry-After header can be read.72% similarUnverified在 HTTP 节点中方法选错时服务器会返回 405 Method Not Allowed 错误68% similarUnverifiedopenai-php/client maps 5xx to ServerException, other 4xx with a JSON error body to ErrorException, and network failures and timeouts to TransporterException.68% 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).68% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1054775API
curl https://kongchang.com/api/v1/knowledge/claims/1054775MCP
get_claim(id=1054775)