[KongchangAI]
ConceptHTTP Status Code

HTTP Status Code

A three-digit numeric code in the HTTP protocol indicating the result of a server's processing of a request. Codes in the 2xx range indicate success, 4xx indicate client errors, and 5xx indicate server errors.

Core Facts

Timeline (last 90 days)

Oct 18

When validating an API endpoint, 401 means the Key is wrong, has been revoked, or is missing the Bearer prefix; 402 means an account balance or billing issue; 403 means an environment or permission mismatch; 400/404 (for the model) means the Model ID has expired; and 429/5xx are the only two status codes worth retrying.

Unverified50%
Oct 17

When encountering non-retryable status codes (such as 400, 401, 404), break directly to the next model, because retrying is pointless.

Unverified50%
Oct 14

HTTP status codes that should be retried include: 429, 502, 503, 504, as well as network-layer failures such as connection resets and timeouts.

Unverified50%
Oct 14

Among HTTP status codes, those starting with 2 indicate success (200 success, 201 created successfully, 204 success but no response content), those starting with 3 indicate redirection or caching (301 and 302 redirection, 304 caching), those starting with 4 indicate client errors (401 no authentication provided, 403 no permission, 422 parameter format incorrect, 429 requests too frequent), and those starting with 5 indicate internal server errors.

Unverified50%
Oct 14

The bare error codes returned by traditional APIs (such as 404, 500) will trap an Agent in an ineffective retry loop, because an Agent lacks the contextual ability of a human developer to consult logs and documentation.

Unverified50%
Oct 14

HTTP status code 200 indicates the page returns normally; 301/302 indicates a redirect, and overly long chains dilute authority; 404 indicates the page does not exist; 410 indicates the content has been permanently removed; 5xx indicates a server error.

Unverified50%
Oct 13

An HTTP 200 status code means the server has accepted and started running the task, but it does not guarantee the processing result is correct; a status code other than 200 means the task did not start.

Unverified50%
Oct 11

Once a response has started with a 200 status code, the status code can no longer be changed; therefore exceptions should be wrapped as explicit error events and sent to the frontend.

Unverified50%
Oct 11

In model invocation scenarios, a 404 typically means the model ID does not exist or has been taken offline, and is a signal to try a different model.

Unverified50%
Sep 12

HTTP 503 indicates the server is temporarily unable to handle the request, 500 indicates a backend logic anomaly, and 404 indicates that the requested resource does not exist.

Unverified50%

1 more timeline events

All Facts (12)

Verified

The HTTP 200 status code only indicates that the server successfully received and processed the request; it does not represent correct execution of business logic, as a large number of business errors can be wrapped inside a 200 response body.

70%
Unverified

When validating an API endpoint, 401 means the Key is wrong, has been revoked, or is missing the Bearer prefix; 402 means an account balance or billing issue; 403 means an environment or permission mismatch; 400/404 (for the model) means the Model ID has expired; and 429/5xx are the only two status codes worth retrying.

50%
Unverified

When encountering non-retryable status codes (such as 400, 401, 404), break directly to the next model, because retrying is pointless.

50%
Unverified

HTTP status codes that should be retried include: 429, 502, 503, 504, as well as network-layer failures such as connection resets and timeouts.

50%
Unverified

Among HTTP status codes, those starting with 2 indicate success (200 success, 201 created successfully, 204 success but no response content), those starting with 3 indicate redirection or caching (301 and 302 redirection, 304 caching), those starting with 4 indicate client errors (401 no authentication provided, 403 no permission, 422 parameter format incorrect, 429 requests too frequent), and those starting with 5 indicate internal server errors.

50%
Unverified

The bare error codes returned by traditional APIs (such as 404, 500) will trap an Agent in an ineffective retry loop, because an Agent lacks the contextual ability of a human developer to consult logs and documentation.

50%
Unverified

HTTP status code 200 indicates the page returns normally; 301/302 indicates a redirect, and overly long chains dilute authority; 404 indicates the page does not exist; 410 indicates the content has been permanently removed; 5xx indicates a server error.

50%
Unverified

An HTTP 200 status code means the server has accepted and started running the task, but it does not guarantee the processing result is correct; a status code other than 200 means the task did not start.

50%
Unverified

Once a response has started with a 200 status code, the status code can no longer be changed; therefore exceptions should be wrapped as explicit error events and sent to the frontend.

50%
Unverified

In model invocation scenarios, a 404 typically means the model ID does not exist or has been taken offline, and is a signal to try a different model.

50%
Unverified

HTTP 503 indicates the server is temporarily unable to handle the request, 500 indicates a backend logic anomaly, and 404 indicates that the requested resource does not exist.

50%
Unverified

接口自动化编排中,401表示认证失败、404表示资源不存在,AI可根据HTTP状态码智能诊断问题

50%

Source Articles