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

# Failure behaviour

> What happens to your traffic when Navige cannot answer.

What happens to your traffic when Navige cannot answer is a setting, and the default treats tools differently depending on what they do.

## The default, by classification

When the pipeline cannot reach a real verdict, the result depends on the tool's classification. The defaults are chosen so that a degraded Navige neither stops your support agents answering tickets nor lets an unreviewed payment go out.

```text theme={null}
read          open     allowed
unknown       open     allowed
write         closed   blocked
destructive   closed   blocked
financial     closed   blocked
```

> [!NOTE]
>
> `unknown` fails open because, in practice, an unclassified tool is nearly always a newly discovered read. Failing closed on every new tool would turn each discovery event into an outage. If your organisation disagrees, set the default to `closed` and accept that trade-off.

## Changing it

Set a default for everything, then override it per classification. The most specific setting wins. To stop rather than proceed unchecked in every case, set `default: closed`.

The setting is kept in your organisation's settings, and a degraded decision is by definition one where Navige could not read them. Each gateway therefore remembers the choice from its last good read and uses that. A gateway that has never served your organisation (for example, one that restarted during the outage) falls back to the table above.

Monthly budgets have their own switch, on the Budgets page. When the budget cannot be checked, the call either carries on (the default) or is refused with `503`, which is distinct from the `429` of a budget actually exceeded.

## Causes

Every degraded decision records its cause:

* `policy_context_unavailable`: policies could not be read.
* `kill_switch_unavailable`: the kill switch state could not be read.
* `budget_unavailable`: budget state could not be read.
* `counter_unavailable`: the rate and runaway counters could not be read.
* `internal_error`: anything else.

## Degraded allows are counted separately

A call permitted because a policy said so and a call permitted because Navige could not check are different events, and they are never summed into one figure. The console shows degraded decisions separately, so after an incident you can see which calls went through unchecked.

Likewise, an empty policy context is never read as "this organisation has no policies". That reading would turn a cache outage into an organisation-wide policy bypass that nobody would notice.

## On the proxy

If the upstream provider fails, you get the provider's error, unaltered. Navige does not retry on your behalf or convert the provider's error into one of its own; your SDK's existing retry logic is better placed to decide.

If Navige's own recording fails after a successful upstream call, you still get your response. Navige drops the metric rather than failing the request.

## HTTP status

* `400`: your request is malformed. On `/enforce` this is `decision: "error"` **without** `unavailable`.
* `401`: missing, malformed, unknown or revoked key.
* `403`: the agent is inactive or expired.
* `404`: an unknown provider on the proxy, or an approval or task that does not exist in your organisation.
* `503`: Navige is unavailable. On `/enforce` this is `decision: "error", unavailable: true`.

> [!WARNING]
>
> Handle `400` and `503` separately. A `400` is a bug in your request and a `503` is an outage on our side, and they need opposite handling. Treating both as a denial means an outage stops your agents without warning; treating both as an allow means a typo in your payload leaves them ungoverned without warning.


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