# Errors

> Every error has the same shape.

```json
{ "error": { "code": "invalid_request", "message": "lines[2].port_in.transfer_pin is required." } }
```

## Codes

| Status | Code | Meaning |
| --- | --- | --- |
| 401 | `unauthorized` | Missing or invalid bearer token. |
| 402 | `billing_hold` | New orders and stock claims are paused: your account has no card on file, or the card was declined. Lines you already have keep working. |
| 402 | `payment_declined` | The card was declined when you claimed a number from stock. The number goes back to stock; update the card and claim again. |
| 403 | `account_suspended` | Your account is suspended. Contact us. |
| 404 | `not_found` | The line or order does not exist or is not yours. |
| 409 | `iccid_unavailable` | The `iccid` is not one of your physical SIMs, or it is already in use. |
| 409 | `esim_installed` | The eSIM is already installed; reissue instead. |
| 409 | `idempotency_conflict` | The `Idempotency-Key` was already used for a different text. See [Messaging](/docs/messaging). |
| 409 | `request_in_progress` | A request with the same `Idempotency-Key` is still running. Retry shortly. |
| 422 | `invalid_request` | A field is missing or out of range, or the line is not in a state that allows the call. |
| 429 | `rate_limited` | Slow down; honour `Retry-After`. Also returned when a number reaches its [SMS sending limit](/docs/messaging#sending-limits); the message names the limit (`per_minute`, `per_day` or `new_contacts_per_day`). |
| 503 | `dns_unavailable` | The host of an inbound call `uri` could not be looked up right now. Nothing was saved; retry the same request shortly. |
| 503 | `reissue_unavailable` | The network cannot reissue right now, or the line has another change in progress. Retry later with the same `Idempotency-Key`. |

A line that cannot be set up is not an error on the order call: the line goes `failed` with a
`failure` object (see [Line lifecycle](/docs/lifecycle)).
