---
title: "Fix common API errors and failed requests"
url: "https://lookvalid.com/help/api/troubleshoot-common-errors.md"
canonical_url: "https://lookvalid.com/help/api/troubleshoot-common-errors"
last_updated: "2026-10-30"
type: "how-to"
summary: "Every error code the API returns, its HTTP status, whether to retry and the fix, read from the live error registry."
related: ["https://lookvalid.com/docs/errors.md", "https://lookvalid.com/docs/rate-limits.md", "https://lookvalid.com/help/api/use-the-api.md", "https://lookvalid.com/contact.md"]
---

# Fix common API errors and failed requests

> **For AI agents:** the complete index of LookValid pages is [llms.txt](https://lookvalid.com/llms.txt). Every page is also served as markdown at its URL plus .md.

Every error code the API returns, its HTTP status, whether to retry and the fix, read from the live error registry.

## Read the error first

A failed request returns one JSON envelope. Branch on `code`, never on the message text. The `fix` field says what to change, `retryable` says whether sending the same request again can work, and `request_id` identifies the call if you write to us.

A request that fails is never charged. Each code below also has its own page in [the error reference](https://lookvalid.com/docs/errors.md).

## Every code and its fix

Error codes, HTTP status and what to do

| Code | HTTP | Retry | Fix |
| --- | --- | --- | --- |
| [unauthorized](https://lookvalid.com/docs/errors/unauthorized.md) | 401 | No | Send a valid key in the Authorization header as "Bearer <key>". If the key was revoked, create a new one and retry. |
| [forbidden](https://lookvalid.com/docs/errors/forbidden.md) | 403 | No | Use a key from an account that has access to this product, or ask the account owner to grant access. |
| [insufficient_credits](https://lookvalid.com/docs/errors/insufficient_credits.md) | 402 | No | Add credits to the account, then retry. Nothing was charged for this request. |
| [rate_limited](https://lookvalid.com/docs/errors/rate_limited.md) | 429 | Yes | Wait the number of seconds in the Retry-After header, then retry. Spread requests out to stay under the X-RateLimit-Limit value. |
| [invalid_input](https://lookvalid.com/docs/errors/invalid_input.md) | 400 | No | Correct the field named in the message and resend. Each product input schema is in the OpenAPI document. Nothing was charged. |
| [unknown_product](https://lookvalid.com/docs/errors/unknown_product.md) | 404 | No | Check the product id in the URL against the product list in the OpenAPI document or llms.txt. |
| [method_not_allowed](https://lookvalid.com/docs/errors/method_not_allowed.md) | 405 | No | Use the method named in the Allow response header (lookup endpoints and /v1/mcp accept POST). |
| [payload_too_large](https://lookvalid.com/docs/errors/payload_too_large.md) | 413 | No | Send one lookup input per request and keep the JSON body small. Split large lists into separate requests. |
| [provider_unavailable](https://lookvalid.com/docs/errors/provider_unavailable.md) | 503 | Yes | If retryable is true, retry later with exponential backoff. If it is false, this product is not configured on this server and retrying will not help. Nothing was charged. |
| [internal_error](https://lookvalid.com/docs/errors/internal_error.md) | 500 | Yes | Retry once after a short wait. If it fails again, report the request_id to support. Nothing was charged. |
| [not_found](https://lookvalid.com/docs/errors/not_found.md) | 404 | No | Check the path and any ids in it against the API reference, then retry. |
| [conflict](https://lookvalid.com/docs/errors/conflict.md) | 409 | No | Fetch the resource again, check its current state, then resend if the change still applies. |
| [plan_limit](https://lookvalid.com/docs/errors/plan_limit.md) | 402 | No | Change to a plan that includes it, or reduce usage to stay within the plan, then retry. |
| [subscription_required](https://lookvalid.com/docs/errors/subscription_required.md) | 402 | No | Subscribe from the billing page of the dashboard, then retry. |
| `trial_expired` | 402 | No | Subscribe from the billing page of the dashboard to keep using the service. |
| [trial_allowance_exhausted](https://lookvalid.com/docs/errors/trial_allowance_exhausted.md) | 402 | No | Nothing was charged. Start your plan from the billing page ("Start my plan now") to keep going; the plan is only charged when you do. |

## Retry the right way

- Retry only when `retryable` is true: a [rate_limited](https://lookvalid.com/docs/errors/rate_limited.md) answer, a [provider_unavailable](https://lookvalid.com/docs/errors/provider_unavailable.md) answer that says it is retryable, or an [internal_error](https://lookvalid.com/docs/errors/internal_error.md).
- On HTTP 429, wait the seconds in the `Retry-After` header. Each key is limited to 200 requests per 10 seconds.
- On a retryable data source or server error, back off exponentially: wait a little, then a little longer, and stop after a few tries.
- Never retry a 400, 401, 403 or 404 unchanged. The same request returns the same error. A 402 is the one exception: retry it once the account has credits or the plan has started.

## Out of credits

[insufficient_credits](https://lookvalid.com/docs/errors/insufficient_credits.md) means the balance is lower than the price of the lookup. Read the balance with `GET /v1/account`, which is free, then add credits or wait for your plan to renew. On a trial, [trial_allowance_exhausted](https://lookvalid.com/docs/errors/trial_allowance_exhausted.md) means the trial credits are used; see [the trial guide](https://lookvalid.com/help/billing/trial-charge-and-what-it-buys.md).

## Still stuck

Write to hello@lookvalid.com with the `request_id` from the failed response and what you expected. Never include your API key. The guide to [calling the API](https://lookvalid.com/help/api/use-the-api.md) shows a working first request to compare against.

## Related

- [Errors](https://lookvalid.com/docs/errors.md)
- [Rate limits](https://lookvalid.com/docs/rate-limits.md)
- [Call the API and read its responses](https://lookvalid.com/help/api/use-the-api.md)
- [Contact](https://lookvalid.com/contact.md)
