docs

Troubleshoot LLM API errors: 401, 403, 404, 429 and timeouts

An HTTP error describes how the endpoint handled a request; by itself, it does not show whether the advertised model is genuine. Providers and gateways can use status codes differently, so check the response and the provider's own API documentation together.

← Back to docs

First distinguish a connection error from a model verdict

An HTTP error or timeout means the request did not complete normally; it does not by itself establish whether the advertised model is genuine. A failed handshake in ModelVerify means behavioral verification could not proceed. Status codes vary by provider, so read the response alongside that provider's documentation.

Record the date, error code, non-secret endpoint configuration, exact requested model ID and any provider request ID. Never include your API key in a screenshot, URL, support post or shared log. Change one configuration field at a time.

401: authentication failed

A 401 often means a missing, invalid or expired key, or an authentication format the endpoint does not accept. Confirm the key belongs to this provider and project, has not been revoked, and is entered without extra spaces. Check the provider's documented authentication scheme and model access. Some gateways use different status codes for the same problem.

403: access denied

A 403 often indicates that the account cannot use the requested resource. Check model permissions, project selection, quota or billing, IP allowlists and regional restrictions with the provider. Some providers return 401 or 404 for access restrictions; do not infer model identity from the code.

404: route or model not found

Check the API root and exact model ID in the provider's documentation. Keep the documented version prefix, avoid pasting a full operation path into a base URL field, and check whether your account and endpoint expose the model. A model alias or dashboard label may differ from the request identifier.

429: rate limit or quota restriction

A 429 may come from the API provider, an upstream gateway or ModelVerify's own rate limit. Read the displayed message and the provider's documentation to identify which service rejected the request. Check account quota, concurrency and any Retry-After guidance; wait before retrying and reduce request frequency as documented. Repeated immediate submissions can prolong the restriction.

A 429 is not a behavioral mismatch. If ModelVerify says its own limit was reached, respect that limit; changing the provider's key or model does not necessarily remove a session or network restriction.

Timeout, network error or unavailable model

A timeout may reflect network connectivity, provider load, a gateway or a request that exceeded a service's time limit. Check the provider's status, documented endpoint and model availability, and compare with the application configuration that normally works. Account, region and model permissions may also affect availability.

A timeout or unavailable model leaves identity unresolved. If the problem persists, contact the relevant provider with the approximate time, error and request ID, excluding credentials. Do not assume latency or a single unexpected response identifies the model.

After connection works, read the verification result separately

A successful connection shows that the endpoint responded; it does not independently authenticate the model. Compare behavior with a suitable supported official reference, then read match, mismatch or uncertainty in context. Verification requests use your provider key and may incur provider charges.