# Refusals

<!-- GENERATED from packages/gavr/src/refusals.ts and refusal-catalogue.ts by `pnpm --filter @gadvisory/gavr spec:generate`. Do not edit by hand. -->

Every reason a registry gives for not doing what it was asked, code by code:
what it means, the status it arrives with, and what to do about it. Why the
codes are machine-readable and how they group is in [protocol.md](protocol.md);
the ops that raise them are in [operations.md](operations.md).

## Reading a refusal

A refusal arrives as an HTTP error whose body is JSON:

```json
{
  "statusCode": 403,
  "error": "Forbidden",
  "message": "authority-not-active: SUSPENDED"
}
```

`message` is the code, or the code, a colon, a space and a detail. **Branch
on the code before the first colon.** The detail is context for an operator,
worded for a person and free to change; it is never what a client branches on.

**A refused record carries two codes.** When intake refuses the revision an
act would have written, the act is refused as one of `record-refused`, `contribution-refused`, `intervention-refused`, `transfer-refused`, `reassignment-refused`,
and the first word of the detail is the intake reason, from [Intake](#intake):
`record-refused: out-of-scope: ...` is a record refused because it is out of
scope. Branch on the second code to know what to fix.

Three refusals carry fields beside `message`: `malformed-document` carries
`violations`, the numbered rules the document broke (see
[protocol.md](protocol.md)), and `needs-approval` and `approval-pending` carry
`requestId` and `approver`, the request that waits and who decides it.

**Each table belongs to its endpoint.** A code can appear in two families and
mean something different in each: `own-record` refuses an intervention on your
own record in one and a reassignment of it in another. Read it against the
family that answered.

Treat a code this document does not name as a refusal you cannot fix by
retrying: a registry newer than your client may answer one, and the safe
reading is to surface it to an operator.

## Participant actions and signed reads

`POST /authority/actions` and `POST /authority/reads`.

### At the door

Checked before the registry reads what the envelope asks for. The status says
which kind of problem it is: 400 for a request that is malformed, 401 for a
signer that did not prove who it is, 403 for a signer the registry knows and
refuses. A signed read meets the same door, except `replayed`: a read carries
no nonce.

| Code | Status | Means |
| --- | --- | --- |
| `mtls-required` | 401 | The signer holds its key under HOSTED custody and the request came without a verified client certificate. A hosted node signs over mutual TLS. |
| `malformed-envelope` | 400 | The envelope did not parse. The first problem is in the detail. |
| `malformed-signature` | 400 | The signature is not a well-formed signature object. |
| `wrong-signing-context` | 401 | The signature was made in another signing context; see [signing.md](signing.md). |
| `bad-signature` | 401 | The signature does not verify over the envelope. |
| `unknown-key` | 401 | No authority and no node holds the signing key here. |
| `key-retired` | 403 | The signing key is retired. Sign with an active key. |
| `key-revoked` | 403 | The signing key is revoked. |
| `unknown-authority` | 403 | No authority answers to the id or slug the envelope names. Answered 403 and not 404, so it never reads as worth retrying. |
| `authority-not-active` | 403 | The authority is suspended or revoked. The detail names its state. |
| `node-suspended` | 403 | The node that signed is suspended. |
| `node-not-bound` | 403 | The node that signed is not bound to the authority it speaks for. |
| `signer-not-authorised` | 403 | The signing key belongs to another authority: one accredited body may not sign as another. |
| `stale-action` | 403 | The timestamp is older than the freshness window, or does not parse. Sign again with the current time. |
| `future-action` | 403 | The timestamp is further ahead of the registry's clock than the window allows. Check the signer's clock. |
| `replayed` | 403 | The nonce was spent already. Sign a new action with a fresh nonce; never resend one verbatim. |

### Applying the act

Answered 400, with two exceptions: `pending-approval` is not a refusal at all,
and an intake `revision-conflict` makes the whole answer a 409. The codes
under [Record measures](#record-measures) and [Informal asks](#informal-asks)
belong to this family as well. A signed read that passes the door is refused
only `bad-params`.

| Code | Means |
| --- | --- |
| `bad-params` | `params` did not parse against the op's table in [operations.md](operations.md). The first problem is in the detail. |
| `not-a-root` | The proposer accredits no kind at all: only a root proposes an accreditation. |
| `cannot-accredit-kind` | The proposing root may not accredit the kind proposed; see the hierarchy in [trust.md](trust.md). |
| `remit-exceeded` | The scope given reaches outside the acting authority's own remit. The detail names the rule. |
| `kind-cannot-be-scoped` | The remit named is not one the subject's kinds carry, so its rules would bound a power nobody has. |
| `slug-taken` | An authority holds that slug already. |
| `unknown-request` | No accreditation request has that id. |
| `request-not-pending` | The request was decided or withdrawn already. The detail names its state. |
| `not-your-request` | Only the root that filed a proposal may withdraw it. |
| `not-the-accrediting-parent` | The acting authority is not the subject's accrediting parent, so it may not issue the subject's link or staple. |
| `subject-key-not-active` | The link's `subjectKey` is not an active registered key of the subject. |
| `link-refused` | The link breaks a bound in [trust.md](trust.md). The detail names which. |
| `staple-refused` | The staple breaks a bound in [trust.md](trust.md). The detail names which. |
| `unknown-node` | No node has that id. |
| `already-in-state` | What the op names is already in the state it would move it to. |
| `not-bound` | The node is not bound to the acting authority. |
| `key-already-registered` | That public key is registered already. |
| `key-not-on-authority` | The key named is not one of the acting authority's own. |
| `wrong-endpoint` | `gra.appoint` arrived here. An appointment is valid only as a quorum of distinct top-tier roots, which only `POST /gra/appoint` checks. |
| `pending-approval` | Not a refusal. An APPROVAL rule holds the act for an approver's yes: the answer is a 200 carrying `pending: true`, `requestId` and `approver`, and the act lands on the yes. |
| `needs-approval` | An APPROVAL rule gates the accreditation. The request is filed, and `requestId` and `approver` beside the message name it. |
| `no-approver` | An APPROVAL rule gates the act and no ancestor's own remit covers it, so nobody can say yes. |
| `approval-pending` | An act on this record already waits for a yes; one waits at a time. `requestId` and `approver` beside the message name it. |
| `no-such-approval-request` | No approval request has that id. |
| `not-the-approver` | Only the approver the request names may answer it. |
| `already-decided` | The request was answered already, or the subject approval was revoked. The detail says which. |
| `reason-required` | A refusal needs a reason, so the body refused can act on it. |
| `not-a-tlr` | Only a top-level root grants or revokes a subject approval. |
| `not-in-subtree` | The authority named is not beneath the acting one. |
| `expiry-out-of-range` | `expiresAt` is in the past or more than 366 days away. |
| `no-such-subject-approval` | The acting authority granted no subject approval with that id. |
| `record-refused` | Intake refused the record. The detail starts with the reason, from the intake table. |
| `contribution-refused` | Intake refused the peer's contribution. The detail starts with the reason, from the intake table. |
| `restricted` | A restriction in force on the acting authority covers this act. The detail names it: appeal it, or wait for it to lift. |
| `already-restricted` | A restriction of that kind is live on that authority already. |
| `unknown-restriction` | No restriction has that id. |
| `restriction-not-yours` | A root may lift only a restriction it imposed itself. |
| `restriction-already-lifted` | The restriction was lifted already. |
| `restriction-not-liftable` | A root cannot lift a narrowed scope: lifting it widens a scope, which only the secretariat does. |
| `scope-not-narrower` | The rule set given is not contained in the one it replaces. The detail names the rule. |
| `unknown-record` | No record has that identifier. |
| `intervention-refused` | Intake refused the intervention. The detail starts with the reason, from the intake table. |
| `unknown-appeal` | No appeal has that id. |
| `appeal-not-pending` | The appeal was decided or withdrawn already. |
| `not-your-appeal` | Only the body that filed an appeal may withdraw it. |
| `nothing-to-appeal` | The act named is not one the acting authority suffered at a root's hands: it was the secretariat's, it binds nothing, or it was the appellant's own. The detail says which when it can. |
| `resolver-unacceptable` | The registry will not fetch the resolver address declared: loopback, private, link-local and internal addresses are refused. |
| `not-the-owner` | The op is the owner's, and the acting authority does not own the record. |
| `own-record` | The acting authority owns the record, so this is a transfer and not a reassignment. |
| `unknown-authority` | No authority answers to the slug named, or the one that does is revoked. |
| `no-pending-offer` | There is no outstanding offer on the record. |
| `offer-not-yours` | The outstanding offer was made to another body, or by another body. |
| `already-the-owner` | A record cannot be handed to the body that already holds it. |
| `transfer-refused` | The transfer could not land. The detail starts with the intake reason, or says another offer was made at the same moment. |
| `reassignment-refused` | Intake refused the revision a reassignment composes. The detail starts with the reason, from the intake table. |
| `record-locked` | A lock in force on the record refuses this act. The detail names the lock, so the caller knows what to dispute or appeal. |
| `contribution-limited` | A contribution limit on the record does not admit this body or this role. The detail names the limit. |
| `non-issue-under-measure` | The revision makes the record a non-issue while a lock or a contribution limit is in force on it. The detail names the measures; the type can change once they are lifted. |
| `not-implemented` | The op is named in the protocol and this registry has no handler for it: the client is ahead of the registry. |
| `no-key-epoch` | The lease was asked for with a node's key, which has no epoch. Sign it with one of the authority's own keys. |

### Record measures

The lock and the contribution limit, placed and lifted by a root or by the
secretariat. Both families answer these, and they mean the same in each.

| Code | Means |
| --- | --- |
| `unknown-measure` | No measure has that id. |
| `measure-not-yours` | A root may lift only a measure it placed itself. |
| `measure-already-lifted` | The measure was lifted or refused, or has passed its horizon: nothing is left to end. |
| `measure-already-live` | The slot for this record and this imposer is held by a measure still in its process. The detail names it. |
| `non-issue-record` | The record is a non-issue, which keeps its contest path open: nobody may lock it or narrow who may contribute to it. |

### Informal asks

The `ask.*` ops.

| Code | Means |
| --- | --- |
| `bad-params` | The `params`, or the text sent beside the envelope, did not parse. The detail says which. |
| `unknown-record` | No record has that identifier. |
| `own-record` | The asker owns the record, so there is nobody to ask. |
| `unknown-ask` | No ask on that record has that id. |
| `not-your-ask` | The ask was neither filed by the acting authority nor addressed to it. |
| `ask-not-open` | The ask is closed already. |
| `already-acknowledged` | The ask was acknowledged already. |
| `body-mismatch` | The text sent beside the envelope is not the text the envelope signed. |
| `ask-queue-full` | The acting authority has as many open asks as the registry allows; the detail is the count. Wait for answers, or withdraw one. |
| `not-refused` | Only a refused ask can be escalated. |
| `already-escalated` | The refused ask was escalated already. |
| `nobody-above` | There is nobody to escalate to: the body that refused has no accrediting authority, or the asker accredited it and acts on the record itself. |
| `unknown-revision` | The answer names a revision the record does not have. |
| `revision-predates-ask` | The answer names a revision older than the ask. An answer is a change made because of the ask. |

### Intake

Whether the record itself is acceptable, reached as the first word of the
detail of an action code above. Answered 400, except `revision-conflict`,
which is the one refusal a rebuilt retry fixes and is answered 409. Grouped
by what the submitter does about it.

#### The submission is malformed: fix the client

| Code | Means |
| --- | --- |
| `bad-params` | The envelope's `params` did not parse. The first problem is in the detail. |
| `malformed-document` | The document does not satisfy the record schema or a companion rule. `violations` names each rule it broke; see [companion-rules.md](companion-rules.md). |
| `malformed-signature` | The record signature is not a well-formed signature object. |
| `digest-mismatch` | The digest in the signed envelope does not match the document sent beside it: the document was altered in transit, or the client digested something other than its canonical bytes. |

#### The attestation does not hold: fix the signing

| Code | Means |
| --- | --- |
| `wrong-signing-context` | The record signature was made in another signing context; see [signing.md](signing.md). |
| `bad-signature` | The record signature does not verify over the document. |
| `unknown-signing-key` | The key that signed the record is not registered here. |
| `signing-key-not-active` | The key that signed the record is registered and retired or revoked. Sign with an active key. |
| `signer-not-the-acting-authority` | The key that signed the record belongs neither to the authority the envelope names as acting nor to a node bound to it. |

#### The identifier: fix the allocation

| Code | Means |
| --- | --- |
| `unknown-identifier` | No such identifier was ever issued. The identifier is inside the signed document, so the registry cannot assign one: allocate it first, then sign. |
| `identifier-expired` | The identifier was allocated and lapsed unclaimed, and is retired. Allocate another. |
| `identifier-not-yours` | The identifier was allocated to another authority and holds no record yet. Once it does, `not-the-owner` answers instead. |
| `not-provisional` | `record.promote` names an identifier that is not a GAVPR. Submit a GAVR's record with `record.submit`. |
| `provisional-not-yours` | The provisional identifier's mint number is not the submitting authority's. An authority promotes only what it minted. |
| `provisional-epoch-mismatch` | The provisional identifier's epoch is not the epoch of the key that signed the record, or the record was signed by a node's key, which has none. |
| `counter-not-leased` | The provisional identifier's counter lies outside every range this authority leased for that epoch. Lease a range with `mint.lease` before minting offline. |
| `provisional-id-taken` | Another record was promoted under this provisional identifier; the detail names its GAVR. Promoting the same record again answers with that GAVR instead. |

#### The content: fix the record

| Code | Means |
| --- | --- |
| `out-of-scope` | An affected product falls outside a HARD rule of the submitter's scope. Every affected product must pass; see [scope.md](scope.md). |
| `needs-approval` | Never sent. An APPROVAL rule covers the record and nobody has said yes yet, so the registry holds the act and answers `pending-approval` instead. |
| `illegal-transition` | The state change is not one the lifecycle permits; see [lifecycle.md](lifecycle.md). |
| `not-the-owner` | A later revision was submitted by a body that does not own the record. |
| `owner-not-submitter` | The document names an owner other than the body submitting it. Only a transfer, offered and accepted, moves `owner`. |
| `withdrawal-history-erased` | The document claims the record was never withdrawn, and the registry's revision history says it was. Keep the flag. |
| `identifier-mismatch` | The document's identifier is not the one the envelope addressed. |
| `foreign-container-altered` | The revision alters or drops a container the submitter did not author. Put it back as it was: nobody edits anybody else's words. |
| `container-role-not-permitted` | The revision attaches a container claiming a role its author may not claim, or one the submitter may not attach on that author's behalf. A `root` container arrives only through the accrediting body's own intervention. |
| `container-signature-invalid` | A container carries a signature and it does not verify; the detail says why, as `signer-is-not-the-author` or `custody-not-permitted`. A container with no signature is not this. |
| `quorum-not-met` | The authority declared that this act (publishing, withdrawing or accepting a transfer) needs more of its keys than signed its container. Add cosignatures and submit again. |
| `transfer-not-offered` | The acceptance names no offer, or an offer made to another body. |
| `transfer-out-of-bounds` | The acceptance changes more than a handover may: `owner`, `ownershipHistory`, `updatedAt` and the acceptor's own container. The detail names what else moved. Say the rest in an ordinary revision once the record is yours. |
| `transfer-offerer-not-the-owner` | The offer was made by a body that no longer owns the record, because a reassignment moved it while the offer was pending. |

#### An intervention: fix the intervention

| Code | Means |
| --- | --- |
| `intervention-out-of-bounds` | The root's revision changes something an intervention may not. The detail names it. |
| `no-such-record` | There is no record at that identifier to intervene on. |
| `own-record` | The acting authority owns the record, so this is a submission and not an intervention: use `record.submit`. |

#### A contribution: fix the contribution

| Code | Means |
| --- | --- |
| `contribution-out-of-bounds` | The peer's revision changes something outside its own container. A peer may move nothing else, so no retry gets it there. The detail names it. |
| `not-granted` | The acting authority holds no grant on the record, or one below `EDIT`. The detail names the level held, or says none is: ask the owner. |
| `owner-cosignature-invalid` | The owner's co-signature sent with the contribution does not hold up; the detail says how. Without one the contribution is ordinary, and cannot touch `cna`. |

#### The record moved: fetch it and resubmit

| Code | Means |
| --- | --- |
| `revision-conflict` | Another revision of the record was accepted while this one was being checked. Answered 409: fetch the record, rebuild the revision on what it says now, sign it and submit again. |

#### Unsigned: sign it

| Code | Means |
| --- | --- |
| `signature-required` | The record arrived unsigned. Unsigned publishing covers a registry that cannot be reached, and a submission proves this one can. |

## Secretariat actions

`POST /gra/actions`, over mutual TLS.

### At the door

The participant door's statuses, and two codes of the secretariat's own: the
certificate must be the one pinned to the node, and the node must hold the
secretariat.

| Code | Status | Means |
| --- | --- | --- |
| `mtls-required` | 401 | The request came without a verified client certificate. Every secretariat action travels over mutual TLS. |
| `mtls-cert-mismatch` | 403 | The client certificate is not the one pinned to the signing node. |
| `malformed-envelope` | 400 | The envelope did not parse. The first problem is in the detail. |
| `malformed-signature` | 400 | The signature is not a well-formed signature object. |
| `wrong-signing-context` | 401 | The signature was made in another signing context; see [signing.md](signing.md). |
| `bad-signature` | 401 | The signature does not verify over the envelope. |
| `unknown-key` | 401 | No node holds the signing key here. |
| `key-retired` | 403 | The signing key is retired. Sign with an active key. |
| `key-revoked` | 403 | The signing key is revoked. |
| `node-suspended` | 403 | The node that signed is suspended. |
| `not-a-gra` | 403 | The node that signed does not hold the secretariat. |
| `stale-action` | 403 | The timestamp is older than the freshness window, or does not parse. Sign again with the current time. |
| `future-action` | 403 | The timestamp is further ahead of the registry's clock than the window allows. Check the signer's clock. |
| `replayed` | 403 | The nonce was spent already. Sign a new action with a fresh nonce; never resend one verbatim. |

### Applying the secretariat's act

Answered 400. The codes under [Record measures](#record-measures) and
[Accreditation](#accreditation) belong to this family as well.

| Code | Means |
| --- | --- |
| `bad-params` | `params` did not parse against the op's table in [operations.md](operations.md). The first problem is in the detail. |
| `target-required` | The op acts on a target and the envelope names none. |
| `unknown-target` | Nothing answers to the target named. |
| `key-already-registered` | That public key is registered already. |
| `key-not-on-node` | The key named is not one of the node's. |
| `already-in-state` | The target is already in the state the op would move it to. |
| `last-gra` | Removing this node's secretariat, or suspending the node, would leave the registry without one. Grant another node the secretariat first. |
| `last-gra-key` | Closing this key would leave the last secretariat unable to sign. Register a replacement key first. |
| `mtls-required` | `node.cert.set` arrived without a certificate serial to pin. |
| `resolver-required` | A kind that holds records was admitted with no resolver declared. |
| `wrong-endpoint` | `gra.claim` arrived here. A claim is authorised by the bootstrap token, which only `POST /gra/claim` reads. |
| `hold-not-in-force` | The container named places no hold that is still in force on this record: it is not a hold, or a later act already lifted it. |
| `hold-refused` | The record refused the hold act, which the registry composes itself: its current revision no longer parses or the act would break a rule. The intake reason is in the detail. |
| `already-the-owner` | A record cannot be handed to the body that already holds it. |
| `reassignment-refused` | Intake refused the revision the reassignment composes. The detail starts with the reason, from the intake table. |
| `unknown-authority` | No authority answers to the id or slug named. |
| `authority-revoked` | The authority is revoked, and nothing moves it again. |
| `slug-taken` | An authority holds that slug already. |
| `unknown-request` | No accreditation request has that id. |
| `request-not-pending` | The request was decided or withdrawn already. The detail names its state. |
| `key-not-on-authority` | The key named is not one of the authority's. |
| `not-bound` | The node is not bound to the authority. |
| `authority-not-active` | Only an active authority can be elevated. The detail names its state. |
| `already-top-tier` | The authority holds the kind it would be elevated to already. |
| `kind-not-elevatable` | The authority's kinds are not on the accreditation axis, so there is no tier above them. |
| `no-change` | The kinds given are the kinds it holds. Refused rather than applied, because applying it would tell the body its powers changed. |
| `would-orphan-children` | Removing the root capability would leave accredited bodies beneath it with no parent able to accredit them. The detail names them; send `orphans: "reparent"` to move them to the registry. |
| `ambiguous-parent` | The accrediting parent was named twice, by id and by slug. Name it once. |
| `not-flagged` | `revision.flag.review` names a revision no `SOFT` rule flagged. |
| `already-reviewed` | The revision was marked reviewed already. |

### Accreditation

Whether a body may sit beneath the parent named, answered by the directory
ops that admit, move or reshape an authority.

| Code | Means |
| --- | --- |
| `unknown-parent` | No authority answers to the accrediting parent named. |
| `parent-not-active` | The accrediting parent is not active. The detail names its state. |
| `parent-cannot-accredit-kind` | The parent's kinds may not accredit the kind given; see the hierarchy in [trust.md](trust.md). |
| `parent-remit-exceeded` | A rule of the subject's scope lies outside the parent's remit. The detail names it. |
| `kind-cannot-be-scoped` | Scope rules were given for a kind that holds no remit, or for a remit the body's kinds do not carry. |
| `cycle` | Placing the body there would make it its own ancestor. |
| `too-deep` | The accreditation chain above the parent is deeper than the registry walks. |

## Claiming the secretariat

`POST /gra/claim`, over mutual TLS with the bootstrap token as a bearer. 401
for a missing proof, 403 for a window already shut, 400 for the rest.

| Code | Status | Means |
| --- | --- | --- |
| `mtls-required` | 401 | The claim came without a verified client certificate. |
| `already-claimed` | 403 | The registry has a secretariat already: the window is shut. |
| `no-bootstrap-token` | 401 | The registry holds no bootstrap token, so there is nothing to claim with. |
| `bad-token` | 401 | The bearer token is not the registry's bootstrap token. |
| `malformed-envelope` | 400 | The envelope did not parse. The first problem is in the detail. |
| `wrong-op` | 400 | Only `gra.claim` is accepted here. |
| `malformed-signature` | 400 | The signature is not a well-formed signature object in the `gra-action` context. |
| `bad-signature` | 400 | The signature does not verify over the envelope. |
| `key-mismatch` | 400 | The envelope was signed by a key other than the one it registers. |
| `stale-action` | 400 | The timestamp is outside the freshness window. |

## Appointing a secretariat

`POST /gra/appoint`. **Answered 200 whatever the outcome**, because "the
quorum was one short" and "this registry still has a secretariat" are answers
rather than faults, and a console recovering from an outage has to tell them
apart. A refusal is `{ "ok": false, "reason": "<code>", "detail": "..." }`.

| Code | Means |
| --- | --- |
| `mtls-required` | The submission came without a client certificate issued by this registry's certificate authority. |
| `secretariat-available` | The registry still has a usable secretariat, so there is nothing to appoint. The detail is how many. |
| `below-quorum` | Fewer distinct top-tier roots signed than the quorum needs. The detail is `signed/needed`. |
| `no-quorum-available` | Fewer top-tier roots exist than the quorum needs. The detail is `existing/needed`. |
| `wrong-op` | A submission carries an op other than `gra.appoint`. |
| `signer-not-top-tier` | A signer is not a top-tier root. |
| `signers-not-distinct` | Two submissions come from the same root. |
| `target-mismatch` | The submissions do not all name the same node. |
| `bad-params` | `params` did not parse. The first problem is in the detail. |
| `unknown-node` | No node has the id named. |
| `node-not-active` | The node named is not active. The detail names its state. |
| `node-has-no-key` | The node named has no active key, so it could not sign as the secretariat. |
| `already-secretariat` | The node named holds the secretariat already. |
| `signature-rejected` | A submission failed as a signed action. The detail gives the reason from the participant door's table. |

## Applying for accreditation

`POST /authorities/applications`, unsigned: the applicant holds no key the
registry knows yet. 409 for a name or key somebody already holds, 503 for a
full queue, 400 for the rest. The flow is in [applying.md](applying.md).

| Code | Status | Means |
| --- | --- | --- |
| `bad-request` | 400 | The filing does not parse, or a scope rule in it is malformed. The detail names the first problem. |
| `slug-taken` | 409 | An authority holds that slug already. Pick another. |
| `slug-pending` | 409 | An undecided application asks for that slug already. |
| `key-pending` | 409 | An undecided application carries that public key already. |
| `queue-full` | 503 | The queue of undecided applications is full. Try again later. |

## Reading or changing a filing

`GET`, `PATCH` and `POST .../withdraw` on `/authorities/applications/:id`,
with the filing's claim secret as a bearer. A wrong secret is a 403 and an
unknown id a 404, so an applicant can tell a mistyped secret from a mistyped
id.

| Code | Status | Means |
| --- | --- | --- |
| `unknown-request` | 404 | No filing has that id. |
| `bad-claim` | 403 | The claim secret is missing or wrong, or the filing has none. Present it as `Authorization: Bearer <secret>`. |
| `not-pending` | 409 | The filing was admitted, refused or withdrawn already, so it can no longer be corrected or withdrawn. Read it back to see which. |
| `bad-request` | 400 | The correction does not parse, or a scope rule in it is malformed. The detail names the first problem. |
