# Errors

> Every page of these docs is also plain Markdown, listed at https://subliss.app/developers/llms.txt for AI tools.

Every error from the Subliss API has the same shape:

```json
{
  "error": {
    "code": "invalid_key",
    "message": "That key is not a Subliss key, or it has been revoked.",
    "docs": "https://subliss.app/developers/index.html"
  }
}
```

The `code` never changes, so check that rather than the message. The message says what went wrong in plain words, and `docs` points to these pages.

## Every code

- `400` `key_in_url`: the key was in the address. Revoke it and make a new one.
- `400` `invalid_limit`, `invalid_offset`, `invalid_sort`, `invalid_category` or `invalid_published_after`: a parameter is out of range. The message says which values work.
- `400` `needs_key`: `GET /search` was sent `offset` or `published_after`, which only `/tracks` takes, with a key.
- `401` `missing_key`: there is no `Authorization` header.
- `401` `invalid_key`: the key is not a Subliss key, or it has been revoked.
- `404` `track_not_found`: no public subliminal has that ID.
- `404` `creator_not_found`: no creator has that handle.
- `404` `not_found`: there is no endpoint at that address.
- `405` `method_not_allowed`: the API only reads, so send `GET`.
- `429` `rate_limited`: the key has made 60 requests this minute. Wait for the seconds in `Retry-After`.
- `500` `server_error`: something went wrong on our side. Try again in a minute.

## What to do

- A `400` means the request needs fixing. Read the message, change the parameter and send it again.
- A `401` means the key is missing, mistyped or revoked. Check the `Authorization` header, or make a new key under Account.
- A `404` means nothing public matches. A subliminal that is private, unlisted or deleted answers the same as one that never existed.
- A `429` means wait. [Examples](https://subliss.app/developers/examples.md) shows a request that waits for `Retry-After` and tries again.
- A `500` is ours to fix. If it keeps happening, write to [hello@subliss.app](mailto:hello@subliss.app) with the time and the address you called.
