# Errors

The error format and what each code means.

Errors use the RFC 9457 format with `Content-Type: application/problem+json`. Use `code` for logic in your system, because it never changes. The `title` and `detail` text is in Indonesian.

```json
{
  "type": "https://docs.wefluence.app/errors/#rate_limited",
  "title": "Terlalu banyak permintaan",
  "status": 429,
  "code": "rate_limited",
  "detail": "Batas per menit tercapai.",
  "request_id": "req_7c21d0e4a1b2c3d4"
}
```
Include the `request_id` when you contact our team. It is also in the `X-Request-Id` header.

## Error codes

| Status | Code | Meaning | What to do |
| --- | --- | --- | --- |
| 400 | `invalid_request` | A parameter is invalid | Read `detail`, then fix the parameter |
| 400 | `invalid_cursor` | The cursor is broken, or was made for another list or key | Start again from the first page |
| 401 | `invalid_key` | The key is missing, malformed, or revoked | Check the `Authorization` header |
| 401 | `key_expired` | The key has expired | Create a new key |
| 403 | `account_blocked` | The brand account is blocked | Contact our team |
| 403 | `insufficient_scope` | The key does not have the scope for this data | Use a key with the scope you need |
| 404 | `not_found` | The data does not exist in this account | Check the ID and the key's account |
| 405 | `method_not_allowed` | The method is not supported | The API uses `GET`, the MCP endpoint uses `POST` |
| 429 | `rate_limited` | The per-minute limit was reached | Wait for `Retry-After` |
| 429 | `daily_limit_reached` | The daily limit was reached | Try again after 00:00 UTC+7 |
| 500 | `internal_error` | A problem on our side | Retry, and include the `request_id` if it keeps happening |
| 503 | `api_disabled` | The API is temporarily unavailable | Try again in a few minutes |
