> ## Documentation Index
> Fetch the complete documentation index at: https://docs.postinger.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Errors

> Every error is a problem details object with an HTTP status.

Errors are [RFC 9457 problem details](https://www.rfc-editor.org/rfc/rfc9457), sent as `application/problem+json`:

```json theme={"system"}
{
  "title": "Post not found.",
  "status": 404
}
```

`title` is written for people. Failed validation also lists `errors` by field:

```json theme={"system"}
{
  "title": "One or more validation errors occurred.",
  "status": 400,
  "errors": {
    "schedule.at": ["Choose a time in the future."],
    "targets[0].options.title": ["A YouTube Short needs a title."]
  }
}
```

Billing errors carry a `code` as well.

## Status codes

| Status | Meaning |
| - | - |
| `400` | The request is invalid. `errors` says where. |
| `401` | No key, or a key that's revoked or expired. |
| `402` | Your plan doesn't cover this: see [plans](https://docs.postinger.dev/concepts/plans.md). |
| `403` | The key lacks the scope this endpoint needs. |
| `404` | Not found in this key's workspace. |
| `409` | A conflict: the post changed since you read it, is being published, or is already published. |
| `422` | An `Idempotency-Key` reused for a different request. |
| `429` | Too many requests: see [rate limits](https://docs.postinger.dev/api-reference/rate-limits.md). |
| `5xx` | Our side. Safe to retry with the same `Idempotency-Key`. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.