# Article API errors

> Error codes, limits and good practice in the Article API.

## Authentication

| Status | `code` | What to do |
|---|---|---|
| 401 | `missing_token` | Add `?token=YOUR_TOKEN` to the URL. |
| 401 | `invalid_token` | Check the token in **Profile** → **Security**. |
| 503 | `service_unavailable` | Service temporarily unavailable. Retry. |

## Limits

| Status | When | What to do |
|---|---|---|
| 429 | More than 10 generation requests per minute or 100 requests per 15 minutes | Wait for the time in the `RateLimit-Reset` header and retry. |
| 504 | Generation took too long | Shorten `context` or retry later. |

## Error format

```json
{
  "success": false,
  "error": "validation_failed",
  "errors": [{ "field": "context", "message": "Field is required" }]
}
```

Every response has an `X-Request-ID` header. Include it when you report a problem.