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

# Errors

> Read the refusal the Data API returns when it can't serve a value or a request.

When Beacon can't serve a value or a request, the Data API returns a refusal: one object that names the reason. An unavailable value is never a `null`, a `0` or a missing field.

A `null` means something else: the value doesn't apply to that row. How the two differ is on the [API reference](https://docs.beaconrevenue.io/api-reference.md#refusals).

## Status codes

Every collection declares the same three refusal responses. All three carry the refusal object below.

| Status | Name | When | `reason` |
| - | - | - | - |
| `403` | Denied | The read falls outside your grant | `outside_grant` |
| `501` | Not served | The collection or value is declared and nothing produces it | `not_computed`, with `state` set to `DECLARED` |
| Any other | Refused | Any other unavailable value or read | One of the five reasons |

One of the forty-seven collections answers `501` today: `GET /ledger-entries`. The other forty-six answer `200`.

Answers about the key itself, such as a missing or switched-off key or a limit reached, are listed on [Build an app on the Data API](https://docs.beaconrevenue.io/build/app-on-the-api.md#answers-that-arent-data).

The contract doesn't fix which status codes the Refused response covers.

## The refusal object

| Field | Type | Present | Meaning |
| - | - | - | - |
| `reason` | string | Always | One of the five reasons below |
| `what_would_make_it_available` | string | Every reason except `outside_grant` | What has to be true for Beacon to serve the value |
| `denied_at` | string | Only with `outside_grant` | The part of your grant the read failed: `role_authority`, `entity_scope` or `data_class` |
| `degraded_mode` | string | Only with `not_activated`, when a reduced mode applies | The named reduced mode Beacon is running in |
| `state` | string | When the refusal comes from the contract's state, not from your data | `DECLARED`: the value is declared and nothing produces it yet |
| `schema_version` | string | On every refusal | The Data API version the refusal was issued under, for example `PUB-2026.11.23-v0.40` |

`schema_version` is the public version only. It never carries Beacon's internal version. How versions work is on [Versions](https://docs.beaconrevenue.io/api/versions.md).

## Reasons

| Reason | Means | What you do |
| - | - | - |
| `not_computed` | Beacon hasn't produced this value | Read `what_would_make_it_available` |
| `not_activated` | The sources this value depends on aren't connected and active | Read `what_would_make_it_available`, then connect the source. Check `degraded_mode` for a reduced mode |
| `outside_grant` | The read falls outside your role, your entity scope, or the kinds of data your grant reaches | Narrow the read, or ask your admin to widen the grant. See [Entity scope](https://docs.beaconrevenue.io/api/entity-scope.md) |
| `stale_beyond_floor` | The value exists and is older than the freshness limit set for it | Wait for Beacon's next update of the value |
| `no_grain` | The thing you asked about isn't in Beacon at all | Check what you asked for |

The five reasons are fixed. A missing billing source is never a reduced mode.

`outside_grant` carries no `what_would_make_it_available`, because saying so would disclose what lies beyond your access.

> [!NOTE]
>
> The refusal model is published as proposed. It is settled enough to build against and isn't final.

## Example

A read of the one collection Beacon doesn't serve yet, and its response.

```http theme={null}
GET /ledger-entries
```

```json theme={null}
{
  "reason": "not_computed",
  "what_would_make_it_available": "Beacon keeps your ledger as one total per category per month today, not entry by entry. Ledger entries appear here once Beacon keeps each posted entry from your accounting tool.",
  "state": "DECLARED",
  "schema_version": "PUB-2026.11.23-v0.40"
}
```

## Related

> [card] [API reference](https://docs.beaconrevenue.io/api-reference.md)
>
> The forty-seven collections and their shared rules.

> [card] [Entity scope](https://docs.beaconrevenue.io/api/entity-scope.md)
>
> Narrow a read inside your grant.

> [card] [Versions](https://docs.beaconrevenue.io/api/versions.md)
>
> How the contract version moves.


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