Unverified50% confidenceSolutionExact time
The author has tools return a ToolResult containing the error code instead of throwing an exception when an HTTP request fails, so that the LLM can give a readable error reply and users do not see stack traces.
1
Sources
50%
Confidence
Long-term
Relevance
10/18/2026
First Seen
Sources
Related Entities
Related Claims
Unverifiedopenai-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 notify-on-failure job is triggered only when the build fails via the if: failure() condition, using curl to send a POST request to the N8N Webhook carrying context such as run_id, repo, branch, commit, and actor.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).66% similarUnverified当 API 引用账户级资源但对象不存在时,服务端通常返回 404、空结果或资源不存在的错误。66% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1057963API
curl https://kongchang.com/api/v1/knowledge/claims/1057963MCP
get_claim(id=1057963)