# Errors

> For the complete documentation index, see [llms.txt](https://docs.containerfeed.com/llms.txt).

URL: https://docs.containerfeed.com/errors

Every error has the same shape:

```json
{ "error": { "code": "not_found", "message": "Maersk has no record of that number" } }
```

Branch on `code`; `message` is for people and can change.

| HTTP | `code` | When | Retry? |
|---|---|---|---|
| 400 | `bad_request` | No numbers, more than 100, or more than 35 for one line; a template placeholder such as `{number}` sent as the number; a number too short to be one; a malformed body | No |
| 400 | `unknown_carrier` | No line's owner prefix matches the container number, or its ISO 6346 check digit is wrong; a leased container or bill of lading sent without `carrier`; or an unsupported `carrier` | Fix the number or pass [`carrier`](https://docs.containerfeed.com/tracking#line-detection) |
| 401 | `unauthorized` | Missing, wrong or revoked key, or a disabled account | No |
| 402 | `payment_required` | No key, and no free lookup left (or a request for several numbers) | Pay with MPP; see [Pay per request](https://docs.containerfeed.com/authentication#pay-per-request). For a person, `lookup_url` opens the lookup on containerfeed.com |
| 402 | `payment_error` | An MPP payment couldn't be processed | Pay again |
| 402 | `credits_used` | A credit key doesn't have enough credits left for the request | Pay again without the key |
| 404 | `not_found` | The line has no record of the number, or no such watch, delivery, key or route | Later; a new booking can take a while to appear at the line |
| 429 | `free_lookup_used` | No key, and this IP's free lookup for today is used (when pay per request is off), or the request came from a cloud network | Sign up for a key, or after 00:00 UTC |
| 429 | `rate_limited` | The Free plan's allowance is used up (with `upgrade_url` and `X-RateLimit-*` headers), a Free account's weekly watch, the 5,000 active watches, or a line refusing lookups for now | After the reset, or in a few minutes for a line |
| 500 | `internal_error` | Unexpected failure | Yes |
| 500 | `not_configured` | The service is misconfigured | Yes, later |
| 502 | `carrier_error` | The line failed the lookup | Yes |
| 503 | `carrier_unavailable` | The line can't be asked right now: its site is down or not answering, or it failed its last several lookups and is rested for a few minutes | In a few minutes |
| 503 | `rate_limited` | Every lookup slot is busy | In a few seconds |

On `GET /v1/track?numbers=`, per-number errors (`not_found`, `unknown_carrier`, `carrier_error`, `carrier_unavailable`, `rate_limited`) come back inside `results` with a `200`; only a malformed request, a bad key, or a Free account with no room left fails the whole call.

Nothing is billed for an error other than `not_found`: a `not_found` is the line's answer, so it counts as a tracked number.

Over MCP, a failed tool call returns this same object as a result with `isError: true`. See [MCP](https://docs.containerfeed.com/mcp#behavior).
