# Errors

Every error code, and how to fix it.

Every error has the same shape.

```json title="An error"
{
  "error": {
    "code": "link_slug_used",
    "message": "That link address is already used.",
    "field": "slug",
    "help": "Choose another ending.",
    "docs": "https://usetotems.com/docs/errors/link_slug_used"
  },
  "request_id": "req_..."
}
```

`field` and `help` appear only when they are useful. Read `code` in your program. Don't read `message`, because its words can change.

| Status | Code | Meaning |
|---|---|---|
| 400 | bad_request | We couldn't read the request |
| 400 | bad_cursor | That page marker doesn't work |
| 400 | bad_date | That date doesn't work |
| 401 | bad_key | The API key doesn't work |
| 401 | key_expired | The API key has ended |
| 402 | plan_ended | The plan doesn't allow this now |
| 403 | missing_scope | The key can't do this |
| 403 | role_not_allowed | That role can't do this |
| 404 | not_found | We can't find that |
| 409 | already_exists | That already exists |
| 409 | link_slug_used | That link address is taken |
| 409 | retry_body_changed | The retry was different |
| 409 | still_running | The first call is still running |
| 413 | body_too_large | The body is too big |
| 422 | invalid_field | One field is wrong |
| 422 | unsafe_destination | That address isn't safe |
| 429 | too_many_requests | Too many calls |
| 500 | internal_error | Something broke on our side |
| 503 | temporarily_unavailable | Not available right now |
