---
title: Errors
description: Status codes, the JSON error envelope, the stable error-code catalogue and the request id to quote to support. Branch on error.code, never on the message.
---

# Errors

Every ARCNM error returns the same JSON envelope — a stable
`error.code`, a human-readable `message`, and a `request_id` for
support. Branch on `code`, never the message:

```json
{
  "error": {
    "code": "insufficient_scope",
    "message": "API key / token missing required scope",
    "details": {},
    "doc_url": "https://api.arcnm.io/…"
  },
  "request_id": "req_9c5f-…"
}
```

- `code` — stable machine-readable identifier. Switch on this, not on
  `message`.
- `message` — human-readable, English. Safe to log; translate before
  showing end-users.
- `details` — endpoint-specific context (offending field, valid values,
  limits). Always an object.
- `doc_url` — a link to the relevant docs for this code.
- `request_id` — a **top-level** sibling of `error`, and also the
  `X-Request-ID` response header. Quote it in support tickets.

---

## Status codes

| Code | Meaning |
|---|---|
| `200 OK` | Success, body returned |
| `201 Created` | Resource created |
| `202 Accepted` | Async work enqueued — poll for the result |
| `204 No Content` | Success, no body |
| `400 Bad Request` | Payload doesn't match the schema |
| `401 Unauthorized` | Missing / invalid / expired credential |
| `402 Payment Required` | Wallet can't cover the call, or plan entitlement exceeded |
| `403 Forbidden` | Authenticated but lacks scope / role / verification |
| `404 Not Found` | Resource doesn't exist in this tenant |
| `405 Method Not Allowed` | Wrong method for the route |
| `409 Conflict` | Uniqueness or state conflict (e.g. duplicate `part_number`) |
| `410 Gone` | Resource permanently removed |
| `412 Precondition Failed` | Precondition (e.g. `If-Match`) not met |
| `413 Payload Too Large` | Request body exceeds the size cap (`details.observed_bytes`, `details.limit_bytes`) |
| `415 Unsupported Media Type` | Wrong `Content-Type` (e.g. JSON for a CAD upload) |
| `422 Unprocessable Entity` | Schema valid but a value was rejected |
| `423 Locked` | Wallet administratively paused |
| `429 Too Many Requests` | Request **rate** limit hit — see [Rate limits](./rate-limits.md). Plan-quota exhaustion is `402`, not `429` |
| `503 Service Unavailable` | Transient overload or deploy window — honour `Retry-After`, then retry |
| `5xx` (other) | Server / upstream error — retry with backoff |

**Billed on success only:** non-2xx responses cost €0, including 429s.

---

## Error code catalog

These `code` values are emitted by the platform's typed errors and are
stable. Route-level `HTTPException`s that don't map to a typed error get
a code derived from the status (`400→bad_request`, `401→unauthorized`,
`403→forbidden`, `404→not_found`, `405→method_not_allowed`,
`409→conflict`, `410→gone`, `415→unsupported_media_type`,
`422→unprocessable_entity`, `429→too_many_requests`) — with the specific
reason in `message` (e.g. `calculation_not_found`,
`max_attempts_exceeded`).

### Authentication & authorization

| Code | Status | Meaning |
|---|---|---|
| `unauthorized` | 401 | Missing or invalid credential. A request that sends no credential at all (no `X-API-Key`, no `Authorization`) also gets `details.no_account` while pay per call is offered: `pay_per_call` (the URL of `POST /api/v1/pay/price`), `guide` (the [pay-per-call guide](./pay-per-call.md)) and a one-line `note` — an agent with no account can price a CAD file there and pay per calculation. A wrong or expired credential never gets it |
| `invalid_api_key` | 401 | API key not found or revoked |
| `mfa_required` | 401 | Session needs an MFA step |
| `forbidden` | 403 | Authenticated but not allowed |
| `insufficient_scope` | 403 | Key/token lacks the required scope |
| `user_session_required` | 403 | The route needs a signed-in user session (account security, sessions, sign-in step-up); an API key or a scoped OAuth or MCP grant cannot call it. Call it from the app, signed in |
| `role_read_only` | 403 | The signed-in user's role in this organization is read-only (`details.role`, e.g. `viewer`): it can read everything a member reads, but every change needs a member, admin or owner |
| `last_owner` | 403 | `PATCH /memberships/{id}` or `DELETE /memberships/{id}`: the member is the organization's only owner, and an organization always keeps one. Make another member an owner first. Nothing was changed |
| `member_role_above_yours` | 403 | `PATCH /memberships/{id}` or `DELETE /memberships/{id}`: the member's role is above yours (an admin changing or removing an owner). Only an owner changes or removes an owner. Nothing was changed |
| `role_above_yours` | 403 | `PATCH /memberships/{id}`: the role asked for is above your own (an admin making someone an owner). Only an owner makes someone an owner. Nothing was changed |
| `country_slot_requires_admin` | 403 | An install (`POST /environments/from-catalogue`; the MCP `create_environment` tool with `start_from` `preset`) or a region change (`PUT /environments/{id}/identity`) would price in an ARCNM country your organization does not price in yet. That takes one of your plan's countries, and only an owner or admin takes one — signed in, or through an OAuth grant of theirs, which carries their role — or an API key with the [`countries:write`](./authentication.md#scopes) scope. Any other API key, and a member signed in or by grant, install only in the countries your organization holds, on every plan. `details.country` is the country asked for, `details.countries` the ones your organization prices in (sorted country codes), `details.install_url` the app's Environments, Available, where an owner or admin installs it. Nothing was written |
| `tenant_isolation_violation` | 403 | Tenant context required / mismatch |
| `email_verification_required` | 403 | Caller's email isn't verified |
| `recent_auth_required` | 403 | The action needs a step-up confirmation made within the last few minutes. `details.reason` is `no_recent_auth` (none on file), `factor_not_satisfied` (you confirmed with a factor this action does not accept) or `verification_unavailable` (we could not check — retry). `details.factors_accepted` lists what satisfies **this** action; `details.factors_available` lists what the caller has enrolled (`null` when it cannot be resolved); `details.step_up` names where to go — e.g. `{"factor": "passkey", "endpoint": "/api/v1/sessions/sudo/passkey/options"}`. Confirm there, then retry the original request within `details.window_seconds`. There is no password prompt: the factors are a passkey, an authenticator or recovery code, or a code emailed to you. Once an account uses an authenticator app, an emailed code is no longer accepted for step-up; `details.factors_accepted` then lists `passkey` and `totp` only |

### Billing (`402` / `409` / `423` / `502`)

| Code | Status | Meaning |
|---|---|---|
| `insufficient_funds` | 402 | Wallet can't cover the request |
| `entitlement_exceeded` | 402 | Plan limit exceeded. With `details.feature` `nesting_runs` it is this month's job-nest runs (`details.used`, `details.limit`): a new start is kept as a draft instead, and `POST /nest-runs/{run_id}/start` answers this until a run is free. With `details.feature` `arcnm_countries` an install (`POST /environments/from-catalogue`), a duplicate of an installed or detached environment (`POST /environments/{id}/clone`), or a region change (`PUT /environments/{id}/identity`) would add an ARCNM country past the number your plan prices new calculations in (a new country is an owner's or admin's to take: see `country_slot_requires_admin`): `details.used` and `details.limit` count countries, `details.countries` lists the ones you price in (sorted country codes), `details.upgrade_url` is the billing page; nothing was written. Reading, comparing, screening and replaying any country stay free — see [Pricing](./pricing.md#plan-limits) |
| `addon_required` | 402 | The request needs the Nesting add-on: job nests (start, preview, revisions, release), a calculation's cutting file, and the nesting potential of a selection. Pricing never needs it — every sheet quote is nested true-shape on every plan. `details.feature` is `nesting`, `details.required_plan` `scale`, `details.upgrade_url` where to book it. Not a plan limit — book the add-on on Scale or Enterprise (or start its trial), then retry. Stored quotes and job nests stay readable without it — except the job nest an assembly calculation runs for its own sheet components, which is read or changed with the add-on only |
| `quota_exceeded` | 402 | Plan quota for a feature exhausted. Calculation submits always carry `details.cells_requested` / `details.cells_available` (a single run asks for 1). A grid the remaining quota can't cover never runs in part: `/calculations/batch` rejects the whole request with nothing persisted, while `/quote` and `/upload-and-quote` save the grid's cells parked `blocked` first — their `details` then also carry `batch_id` and `parked_cells`, so the batch is never re-submitted: its cells start by themselves once a top-up is credited, and you resume them yourself after a plan upgrade. Shrink the grid, upgrade the plan, or top up your balance — the `coverage` block on the parked calculations says which |
| `wallet_locked` | 423 | Wallet is paused |
| `pending_payment` | 409 | A plan or package change still waits for its invoice (`details.reason` is `pending_payment` too). Nothing was changed. Pay that invoice, or let it lapse, before changing again |
| `payment_provider_unavailable` | 502 | Cancelling or keeping a plan or a pack, or undoing a scheduled plan change, could not reach the payment provider, or it was busy. Nothing was changed. Trying again can help |
| `payment_provider_refused` | 502 | The payment provider refused cancelling or keeping a plan or a pack, or undoing a scheduled plan change. Nothing was changed. Trying again the same way does not help; contact support |
| `cancel_failed_change_undone` | 502 | Cancelling the plan first undid its scheduled plan change, then the cancellation failed: the plan renews as it is, with no scheduled change. `details.retry_helps` says whether cancelling again can help; otherwise contact support |

### State & validation

| Code | Status | Meaning |
|---|---|---|
| `bad_request` | 400 | Malformed request |
| `invalid_cursor` | 400 | Pagination `cursor` is malformed, was issued for a different query (filters or `order` changed mid-walk), or was sent together with `offset` — see [Pagination](./pagination.md) |
| `not_found` | 404 | Resource not in tenant |
| `method_not_allowed` | 405 | Wrong HTTP method for the route |
| `conflict` | 409 | Uniqueness or state conflict (e.g. a duplicate unique key, or a referenced resource that does not exist / is still in use). When a database constraint raises it, `details.constraint` names the violated constraint |
| `no_organization_context` | 409 | User must create/join an org first |
| `idempotency_in_flight` | 409 | Same `Idempotency-Key` still processing |
| `idempotency_conflict` | 409 | Same key reused with a different body |
| `plan_changed` | 409 | A setup commit (`POST /setup/imports`, `POST /environments/{env_id}/setup/changes`) would now do something other than the preview whose `expected_plan_digest` you sent. Nothing was written; `details.plan_digest` is the current plan's digest. Preview again and commit that plan |
| `calculations_changed` | 409 | Pricing a calibration import (`POST /calibration/imports/{id}/price`) would start more new calculations than the `expected_calculations` you confirmed (a call without the field confirms none). Nothing was priced; `details.calculations_required` is the count now. Confirm it and send again |
| `reprice_set_changed` | 409 | `POST /calculations/{id}/drawings/{data_source_id}/assign`, `POST /calculations/{id}/components/{component_key}/drawing` or `/run` sent with `max_calculations`: the change to an assembly (assigning a drawing to it or to one of its components, or pricing a component again) would now price more calculations than you confirmed, usually the count its dry run named. Nothing was changed; `details.calculations` and `details.calculation_ids` name what it would bill now. Ask again with `dry_run` and confirm the new count |
| `pricing_in_progress` | 409 | Another request is pricing this calibration import. Nothing more was started: read the import, and price it again once that request has answered |
| `subscription_not_provisioned` | 409 | Subscription not yet linked to billing |
| `scheduled_change_applied` | 409 | `DELETE /billing/v3/plan/scheduled-change` refused: the plan change scheduled for the period end has already taken effect (`details.effective_at`), so there is nothing left to undo. Nothing was changed. To go back, choose the previous plan again |
| `gone` | 410 | Resource permanently removed — don't retry, and drop the id |
| `precondition_failed` | 412 | Precondition not met |
| `payload_too_large` | 413 | Request body exceeds the size cap (`details.observed_bytes`, `details.limit_bytes`) |
| `unsupported_media_type` | 415 | Wrong `Content-Type` for the route — e.g. JSON sent to a multipart CAD upload |
| `unprocessable_entity` | 422 | Value rejected by a business rule |
| `value_too_long` | 422 | A string field exceeds the column it is stored in. `details.max_length` is the limit; `details.field` names the field when it can be identified (e.g. `part_number`, `description`). Send a shorter value — retrying the same one always fails |
| `material_unresolved` | 422 | The `material_ref` you sent matches no material in the catalogue, or the `material_grade_id` is not a known grade. `details.candidates` carries ranked near matches (same shape as `POST /materials/lookup`) — pick one and resend its `material_grade_id`. Raised identically by every calculation entry point: `POST /calculations`, `/quote`, `/batch`, `/upload-and-quote(-json)` and `PATCH /calculations/{id}/material`. Omit the material entirely to price what the part's own drawing declares |
| `costing_date_in_future` | 422 | The `costing_date` is after today (UTC). A calculation is priced as of today or a day in the past; `details.costing_date` echoes what was sent and `details.today` the latest date accepted |
| `assumption_policy_invalid` | 422 | The `assumption_policy` is not one of `details.allowed` (`frozen`, `market_tracking`, `live`); `details.value` echoes what was sent |
| `different_part_revision` | 422 | `GET /calculations/{id}/diff/{other}` compares two calculations of one part revision; `details.part_revision_ids` names the two that were sent. Pick two runs of the same revision |
| `sensitivity_missing` | 422 | `GET /calculations/{id}/regional-screen`: the calculation stores no cost shares to relocate (it was priced before they were recorded, or its price carries no lines). Re-price it, then screen the new calculation. A calculation with no price yet is refused before this, with `409 conflict` and `details.reason: calculation_not_priced`; an assembly with `409 conflict` and `details.reason: assembly_parent` — its cost shares are recorded per component, so screen a component's own calculation (`GET /calculations/{id}/bom` names them). `POST /calculations/{id}/reprice-preview` and `GET /calculations/{id}/landed-cost` refuse an assembly the same way |
| `lot_size_not_on_curve` | 422 | `GET /calculations/{id}/regional-screen`: the `lot_size` is not one the calculation stores cost shares for; `details.lot_points` lists the ones it does. Omit `lot_size` to screen the ordered lot |
| `reprice_assembly_unsupported` | 422 | `POST /calculations/{id}/reprice`: the calculation is an assembly or a component of one (`details.assembly_role`). A re-price prices one part on the geometry its source priced; a component is priced under its assembly's costing date and policy, and an assembly is decomposed and read again when it runs. Calculate the assembly (`details.assembly_calculation_id`) again with the `costing_date` and `assumption_policy` you want (`POST /calculations` with `derived_from_calculation_id`) — every component inherits them. Nothing was created. `POST /calculations/reprice` (an alert's re-price included) skips such a source with this code as its `reason` |
| `reprice_frozen_environment_changed` | 409 | `POST /calculations/{id}/reprice` with the `frozen` policy: the calculation's environment was changed after it ran (`details.calculation_id`, `details.costing_environment_id` and what changed). A frozen re-price returns the source's result again or nothing: it cannot read the environment's own configuration as it stood then, so it refuses instead of pricing the new one under the old label. Re-price it `market_tracking` or `live` to price the environment as it is now. The batch re-price skips such a source with this code as its reason |
| `no_regional_lever` | 422 | `GET /calculations/{id}/regional-screen`: nothing in the calculation's cost moves with the region — its cost shares carry no material or labour input the reference values answer (a price that only a currency conversion moves, or inputs whose base region has no value). `details.held` names each input and why it is held |
| `stock_item_price_item_unread` | 422 | `POST /environments/{env_id}/rates/stock-items` (and its `/validate`) or `POST /environments/{env_id}/raw-material/prices`: a raw-material price stated for one stock item of a kind that no calculation prices item by item yet (`details.item_family`), so it would never be used. Nothing was saved. State the price for the grade or for the material family instead: `details.price_keys` lists the keys that price that stock |
| `environment_not_found` | 404 | The `costing_environment_id` you sent is not a costing environment of your organization — another organization's id answers exactly like one that never existed. Raised identically by `POST /calculations`, `/quote`, `/batch` and `/upload-and-quote(-json)`, and by `GET /environments/{env_id}` |
| `environment_has_dependent_children` | 409 | `DELETE /environments/{env_id}` refused: a child environment (at any depth) inherits values from this one and has calculations priced with them. `details.children` lists each one as `{id, name, calculations}`. Delete those calculations or give the children another parent first. A delete that goes through answers `detached_child_ids`: the children it left without a parent |
| `environment_has_calculations` | 409 | `DELETE /environments/{env_id}` refused: calculations were priced in this environment and keep it on record. `details.calculations` is how many (the environment's `calculation_count` says the same before you ask). Archive it instead (`POST /environments/{env_id}/archive`): it stays readable with its calculations, leaves the list and no longer counts against your plan. An environment already archived is told it stays on record while calculations refer to it. Nothing was deleted |
| `environment_archived` | 409 | The environment is archived: it is read-only and prices no new calculation. Refused on every change to it (its identity, economics, rates, machines, tools, subcontractors, raw material, tuning, calibration, follow and versions), on every new calculation and run in it, and on a re-price of a calculation priced in it (a bulk re-price skips that source with reason `environment_archived`). Its calculations stay readable, comparable and exportable. `details.costing_environment_id` and `details.archived_at` name it. Restore it (`POST /environments/{env_id}/restore`) first; nothing was changed |
| `default_environment_cannot_be_archived` | 409 | `POST /environments/{env_id}/archive` refused: a calculation that names no environment is priced in this one (your default, or the auto-provisioned one). `details.costing_environment_id` names it. Make another environment the default first (`PUT /environments/{env_id}/default`); nothing was changed |
| `environment_name_taken` | 409 | `POST /environments`, `PUT /environments/{env_id}/identity`, `POST /environments/{env_id}/clone` or `POST /environments/from-catalogue`: another environment of your organization already has this name — its own, a duplicate or an installed one. Names are compared ignoring case and extra spaces ("Werk Nord" is "werk  nord "). The message names that environment as it is spelled. `details.name` is the name refused, `details.suggested_name` a free one — the next of its series: "Germany (2)", and for "Germany (2)" "Germany (3)", for "Germany (copy)" "Germany (copy 2)"; `details.existing_name` and `details.existing_id` are the environment that holds the name. Nothing was created or changed. Send another name; a duplicate sent without a name takes the next free one itself ("‹name› (copy)", "(copy 2)" …) |
| `baseline_currency_mismatch` | 422 | `POST /environments` with `source: baseline_copy` (the default when `source` is omitted): the copy keeps your default environment's machine rates and its other rates, which are in the default's currency, and the `currency` you sent is another — they would be read as that currency's money. `details.source_currency` is the default environment's currency, `details.requested_currency` the one you sent (a copy sent without `currency` is in the default's own). Nothing was created. To price in another currency, install that country's ARCNM environment (`GET /catalogue/environments`, then `POST /environments/from-catalogue`): it states its machines and rates in its own currency. Or copy the default in its own currency |
| `learning_holdout_share_out_of_range` | 422 | `PATCH /environments/{env_id}/economics` refused: `learning_holdout_share` admits a share above 0 and at most 0.05 (5 %) of the environment's quotes, and the value you sent is outside it. `details.sent` is that value, `details.max` the largest share admitted. Nothing was changed. Send a share in range, or `null` to switch the hold-out off |
| `cad_file_not_step` | 422 | The 3D model is not a STEP file (no ISO-10303-21 header), or it opens with the header but is too small to hold a model (truncated) or has no HEADER or DATA section — the message says which. STEP is the only solid-model format a part is priced from. Export the part as STEP AP203, AP214 or AP242 and re-upload; a mesh (STL, OBJ) goes in as `role=mesh` and is priced on its envelope only |
| `cad_file_truncated` | 422 | The STEP file ends before its closing `ENDSEC;` and `END-ISO-10303-21;`: it was cut off on its way (a dropped connection, a size-capped export or mail gateway). Refused before anything is stored, calculated or billed, on every upload path — on a presigned upload by `POST /uploads/confirm`, which leaves the upload `pending`. Export or send the file again |
| `drawing_unreadable` | 422 | The drawing is a PDF that does not open — its bytes after the `%PDF-` header are damaged or cut off, or it is password-protected — or it opens with no page. Refused before anything is stored, calculated or billed, on every upload path — on a presigned upload by `POST /uploads/confirm`, which leaves the upload `pending`. Export the drawing as PDF again and re-upload |
| `checksum_mismatch` | 422 | A JSON upload stated a file's `sha256` (`cad_sha256`, `drawing_sha256`, or a drawing's `sha256`) and the file arrived with another digest: it changed on its way. `details.field` names the file, `details.sent_sha256` and `details.received_sha256` the two digests. Nothing was stored. Send the file again; the digest is of the file itself, before base64 and any gzip |
| `cad_3d_file_too_large` | 413 | The 3D model is larger than the CAD upload cap for its kind: 5 MB for a single part, 25 MB for an assembly of several solids, which is priced part by part. Both caps hold on every upload path. ARCNM tells the two apart by counting the solids in the file, so a single part over 5 MB is refused even under 25 MB, and a DXF flat pattern is a single part. `details.max_file_mb` is the cap that applied, `details.max_part_mb` and `details.max_assembly_mb` are both caps, `details.assembly` is the kind found (`null` when the file was refused while it was read, over the larger cap) and `details.file_bytes` its size once read in full. Export a lighter STEP without embedded graphics, or split the assembly. On the JSON upload a gzip-compressed STEP is accepted and counts at its uncompressed size. After a presigned upload the same check refuses the file when it is confirmed: `upload_rejected`, with `failure_reason` `cad_file_too_large` |
| `currency_unknown` | 422 | `currency` is not an ISO 4217 code — on a quote, an environment's `presentation_currency` (`PUT /environments/{env_id}/identity`), an organization's `reporting_currency` (`PATCH /organizations/current`) or a comparison's `reporting_currency` query parameter (`GET /calculations/batches/{batch_id}/comparison`, `POST /calculations/comparison`). Send a three-letter code such as `EUR`, or omit it to quote in the costing environment's currency (to compare in your organization's reporting currency). Nothing was created or changed |
| `currency_not_configured` | 422 | The costing environment has no exchange rate from its own currency to the `currency` you asked for — or, on a quote that names none, to its `presentation_currency` — so it cannot quote in it. `details` names the environment's currency and the currencies it can quote in. Send one of those, add the exchange rate to the environment's rates, or set its `presentation_currency` to one it can quote in. `PUT /environments/{env_id}/identity` answers it for a `presentation_currency` the environment cannot quote in. Nothing was created or changed |
| `environment_currency_in_use` | 409 | `PUT /environments/{env_id}/identity` with a `currency` other than the environment's: the environment states figures in its current currency that carry no currency of their own, and a change of `currency` converts none of them — they would be read as the new currency's money, or stop applying. `details.currency` is the current currency, `details.requested_currency` the one sent, `details.stated` the kinds of figure: `economics` (its economics' money), `machine_rates` (a machine of its fleet with a rate of its own), `tuning` (a money knob of its tuning), `rates` (a labour, overhead, material, subcontract or scrap rate in the current currency) and `stock_prices`. Nothing was changed. To show its results in another currency, set `presentation_currency` instead: it changes no figure. To restate the environment, restate or remove those figures first |
| `organization_has_followed_listings` | 409 | `DELETE /organizations/current`: other organizations follow versions your organization published (`details.followers`). Retire the listings, then contact support to close the account. Nothing was deleted |

### Upload links

Raised by the upload page's two calls, `GET /upload-links/current` and `POST /upload-links/current/uploads`, which a person makes without signing in, with the token from an upload link (see [Uploading files → Upload links](./uploads.md#upload-links)), and — `upload_link_too_many_open` — by `POST /upload-links`, which issues one. A refusal of the file itself (`cad_file_not_step`, `cad_3d_file_too_large`, `unsupported_media_type`, the `dxf_*` codes) is answered as on any other upload.

| Code | Status | Meaning |
|---|---|---|
| `upload_link_invalid` | 404 | Not a working upload link: the token is missing, altered or not one this API issued. Ask the person who sent the link for a new one |
| `upload_link_closed` | 410 | The link can no longer be used. `details.reason` is `expired` (it was issued more than 30 minutes ago), `used_up` (its `max_uploads` parts are uploaded, or too many uploads failed) or `revoked` (it was revoked; whoever issued it signed out of all devices, recovered their account or withdrew the app that issued it; or they can no longer upload in the organization). Issue a new link |
| `upload_link_unavailable` | 409 | The organization the link uploads into cannot take the upload right now — for example its storage is full or the link's costing environment or folder was deleted. The reason is not given, because whoever holds a link may be outside the organization. The page asks the person to tell whoever sent the link |
| `upload_link_too_many_open` | 409 | Your organization already has as many upload links open as it may — links that have not expired, been revoked or been used up (`details.open_links`, `details.max_open_links`). Nothing was issued. Revoke a link you no longer need (`DELETE /upload-links/{upload_session_id}`) or wait until one closes, then issue the link |

### DXF flat patterns

Raised by the upload routes when the CAD file is a DXF flat pattern (`POST /calculations/upload-and-quote(-json)`, `POST /parts/{part_id}/revisions/{revision_id}/datasets?role=cad_3d`) — at upload, before anything is stored. See [Uploading files → DXF flat patterns](./uploads.md#dxf-flat-patterns).

| Code | Status | Meaning |
|---|---|---|
| `dxf_gauge_required` | 422 | A DXF carries no thickness: send `sheet_gauge_mm` (millimetres, above 0) |
| `dxf_material_required` | 422 | A DXF names no material and has no title block to read one from: send `material_grade_id` or `material_ref` |
| `dxf_unreadable` | 422 | The file does not start as a DXF, or ezdxf cannot read it (`details.reason`). Export the flat pattern as DXF (ASCII or binary) and re-upload |
| `dxf_units_unsupported` | 422 | `$INSUNITS` (`details.insunits`) is neither 4 (millimetres) nor 1 (inches) — unitless files included. Export with the drawing unit set |
| `dxf_no_contour` | 422 | The file draws no closed contour (`details.entities` geometric entities were read) |
| `dxf_open_loop` | 422 | A contour of lines and arcs does not close: no entity continues from `details.loose_end_mm` (after `details.chain_points` points). Close the contour or join the gap |
| `dxf_multiple_outer_contours` | 422 | The file draws more than one outer contour (`details.contours` closed contours; `details.reason` is `second_outer`, `crossing`, `island` — a contour inside an opening — or `openings_cross`). One part per file: a nest of several parts is a job nest's output, not its input |
| `dxf_is_drawing` | 422 | The file is a drawing, not a cutting file: it carries dimensions (`details.dimensions`). Export the part's flat pattern (its contours only), or switch off the layers that carry the frame and the dimensions |

### Stock formats

Raised by `/stock-formats`, — `stock_format_last_in_environment` — by the raw-material routes of an environment, and — `stock_format_unresolved` and `stock_format_not_in_environment` — by every calculation entry point that accepts `stock_format_id`. Where a refusal is about one format, `details.stock_format_id` names it.

| Code | Status | Meaning |
|---|---|---|
| `stock_format_not_found` | 404 | No format with this id is visible to your organization. Editing or retiring a standard format answers the same way: standard formats can be hidden, but not edited or retired |
| `stock_format_key_taken` | 409 | One of your current formats already uses this `key` (`details.key`). Choose another key, or edit that format |
| `stock_format_superseded` | 409 | The version you named is closed: it was retired, or replaced by a newer version when its size, gauge band or material changed. Past calculations were priced on it as it is, so it can't be changed, retired again or hidden — act on the current version, which `GET /stock-formats` lists. Its `label` can still be corrected |
| `stock_format_last_remaining` | 409 | The change would leave your organization no format to price with. Add a format of your own, or show a hidden standard format again (`DELETE /stock-formats/{id}/suppression`), then retry |
| `stock_format_last_in_environment` | 409 | The change would leave a costing environment without a stock format of a kind it calculates with. `details.environments` lists each one: `environment_id`, `environment_name` and `kind`. Raised by `POST /environments/{env_id}/raw-material/remove` and `/copy` (with `replace: true`), counted (`dry_run`) or applied, and by `POST /stock-formats/{id}/suppression` and `DELETE /stock-formats/{id}` when the format is the last of its kind in one of your environments. Add another format of that kind to the environment with `POST /environments/{id}/raw-material/add`, then repeat the request. Nothing was changed |
| `stock_format_own_row_use_retire` | 409 | Only standard formats can be hidden. To stop using one of your own formats, retire it with `DELETE /stock-formats/{id}` — it stays on record for the calculations priced on it |
| `stock_format_unresolved` | 422 | The `stock_format_id` you sent names no format your organization prices with today: it does not exist, was retired, or is a standard format you have hidden. An id from an older version of a format you still buy is not refused — it prices on the current version. Pick a format from `GET /stock-formats`, or omit the field to price on the format that uses the least material. Raised identically by `POST /calculations`, `/quote`, `/batch` and `/upload-and-quote(-json)`, before anything is stored. On a re-run (`derived_from_calculation_id`) that omits the field, the format kept from the calculation re-run is checked the same way, and `details.derived_from_calculation_id` names that calculation — send `stock_format_id` to choose another format, or `null` to price without one |
| `stock_format_not_in_environment` | 422 | The format exists and your organization can use it, but the costing environment the request names does not hold it — and a calculation prices with the stock formats its environment holds. `details.environment_id` and `details.environment_name` name the environment; `details.stock_format_id` names the format (`details.stock_format_ids` on a job nest, one per format). Add the format to the environment with `POST /environments/{id}/raw-material/add`, pick one of the formats it holds from `GET /environments/{id}/raw-material/formats`, or send `stock_format_id: null` to price on the format that uses the least material. Raised by `POST /calculations`, `/quote`, `/batch` and `/upload-and-quote(-json)` — for every environment of a grid, before anything is stored — and by `POST /nest-runs` and `/nest-runs/preview` for a format in `formats`. On a re-run that keeps its calculation's format, `details.derived_from_calculation_id` names that calculation. A calculation that already exists is not affected: it is priced on the environment's list as it stood on its own date. |
| `stock_item_exists` | 409 | One of your items already is this item; edit that one instead. `details.item_key` names it |
| `stock_item_stopped` | 409 | You stopped buying this item; add it again to buy it again. `details.item_key` names it |
| `stock_item_change_scheduled` | 409 | A change to this item takes effect tomorrow; stop buying it from tomorrow on. `details.item_key` names it |
| `stock_item_not_a_copy` | 409 | The item was not copied from a standard item, so there is nothing to compare it with. `details.item_key` names it |

### Raw-material prices

Raised by `POST /environments/{env_id}/raw-material/prices`. `details.item_key` names the item a refusal is about; nothing was changed.

| Code | Status | Meaning |
|---|---|---|
| `stock_item_price_invalid` | 422 | A price for one of the items is refused; `error.message` says why |
| `stock_item_price_basis_refused` | 422 | The price basis you stated cannot price this item; `error.message` says why |
| `stock_item_price_item_unknown` | 422 | A `price_key` names no stock item that is yours or a standard item |
| `stock_item_price_currency` | 422 | A price row is in another currency than the environment prices in; `error.message` names the environment's |
| `stock_item_price_not_found` | 404 | The environment states no price row with this id |
| `stock_item_price_overlap` | 409 | The environment already states this price for an overlapping period; `details.row_id` is that row. Correct it, or start this one after it ends |
| `stock_item_price_tier_unit` | 409 | The price's other tiers count in another unit; state this tier in theirs. `details.row_id` is a row that does |
| `stock_item_price_superseded` | 409 | The row was already corrected or ended; change the row that replaced it. `details.row_id` is the row you named |

### Scrap prices

Raised by `PUT` and `DELETE /environments/{env_id}/rates/scrap/{material_category}/{scrap_class}`, and — `scrap_price_use_scrap_route` — by the generic rate routes. Where a refusal is about one price, `details` names its `material_category`, `scrap_class` and `grade_id`.

| Code | Status | Meaning |
|---|---|---|
| `scrap_price_backdated` | 422 | `valid_from` lies before today (`details.valid_from`, `details.today`). A scrap price starts today or later, so quotes already made keep the price they were costed at. Send today's date, a later one, or none |
| `scrap_price_grade_category_mismatch` | 422 | The `grade_id` you sent is not of the `material_category` in the path (`details.grade_category`). State the price under the grade's own category |
| `scrap_price_not_found` | 404 | The environment states no price for this material and kind of scrap from today on, so there is nothing to clear. The price in use comes from a parent environment or the platform — `GET /environments/{env_id}/rates/scrap` says which |
| `scrap_price_use_scrap_route` | 422 | `POST /environments/{env_id}/rates` and `DELETE /environments/{env_id}/rates/{kind}/{rate_id}` do not take kind `scrap`: they would stack a second price, or erase one quotes were costed at. Use `PUT` or `DELETE /environments/{env_id}/rates/scrap/{material_category}/{scrap_class}` |

### Job nesting and remnants

Raised by `/nest-runs` (nesting a backlog of parts together, sheet by sheet) and `/remnants` (the remnants a shop keeps in stock). `POST /nest-runs/preview` refuses exactly what starting the same job nest with `POST /nest-runs` would, by the same codes, and stores nothing.

| Code | Status | Meaning |
|---|---|---|
| `nest_run_not_found` | 404 | No job nest with this id in your organization |
| `nest_run_selection_not_found` | 404 | The environment, batch or folder you named is not your organization's (`details` names which) |
| `nest_run_items_unusable` | 422 | Some items can't be nested. `details.items` names each by its `index` and `calculation_id`, with a `reason`: `not_found`, `other_environment` (priced in another environment than the one you named), `not_succeeded` (not priced yet), `not_sheet` (not cut from sheet), `no_stored_layout` (no layout was stored with its price), `material_provided` (the customer supplies the material) or `missing_facts` (its price does not state the thickness, the material price or the spacing a job nest reads); adding a part to a solved job nest's order also answers `other_group` (another material, thickness or margin than the material and thickness named, or a wider web than it was nested at). Nothing was queued; send the others |
| `nest_run_nothing_to_nest` | 422 | Nothing in the batch or folder can be nested in this environment. `details.left_out` names each calculation with its reason, as for `nest_run_items_unusable` |
| `nest_run_selection_too_large` | 422 | The batch or folder holds more calculations than one job nest takes (`details.lines`, `details.max_lines`). Nothing was queued; nest it in smaller selections |
| `nest_run_line_too_large` | 422 | A line asks for more copies than one job nest line takes (`details.max_copies_per_line`). `details.lines` names each such line by its `index` and `calculation_id`, with the `quantity` it asked for — stated, or its calculation's lot size. Nothing was queued; nest it with a smaller quantity |
| `nest_run_too_many_copies` | 422 | The lines together ask for more copies than one job nest takes (`details.copies`, `details.max_copies_per_run`). Nothing was queued; nest it in smaller selections |
| `nest_run_formats_unknown` | 422 | A format the job nest was told to buy from is not a sheet format your organization buys today (`details.formats` names each). Nothing was queued; name formats from `GET /stock-formats?kind=sheet` |
| `nest_run_budget_too_long` | 422 | `group_budget_s` asks for more computing time per material and thickness than your organization may (`details.group_budget_s`, `details.max_group_budget_s`). Nothing was queued; ask for the ceiling or less |
| `nest_run_in_flight` | 409 | A job nest of your organization is still queued or running (`details.run_id`, `details.status`): one at a time. Nothing was queued; wait until it ends, or cancel it |
| `nest_run_too_many_nests` | 422 | The selection would nest more materials and thicknesses than one job nest takes (`details.nests`, `details.max_nests`). Nothing was queued; split it |
| `nest_run_too_many_drafts` | 409 | This month's runs are used, so the start would be kept as a draft — and your organization already keeps as many drafts as it may (`details.drafts`, `details.max_drafts`). Start one once runs are available, or cancel one, then start this one |
| `nest_run_not_draft` | 409 | `POST /nest-runs/{run_id}/start` named a job nest that is not a draft (`details.status`): it was started already or has ended |
| `nest_run_not_cancellable` | 409 | The job nest has already ended (`details.status`) |
| `nest_run_group_not_found` | 404 | No material and thickness with this id in the job nest (`details.group_id`) |
| `nest_run_revision_not_found` | 404 | The material and thickness has no revision with this number (`details.revision`); `GET …/revisions` lists them |
| `nest_revision_moved` | 409 | Another layout of this material and thickness was saved after the one your edit started from (`details.base_revision`, `details.active_revision`). Nothing was stored: read the active revision, then adjust and save again |
| `nest_run_not_editable` | 409 | The job nest's sheets cannot be adjusted or released now: `details.reason` is `not_ended` (wait until it ends, or cancel it) or `group_not_solved` (this material and thickness is not nested) |
| `nest_run_released` | 409 | The job nest was released (`details.counted_at`): its stock is booked, its sheets are frozen, and it cannot be a simulation again. Start a new job nest to lay them out differently |
| `nest_run_remnant_unavailable` | 409 | A remnant the job nest planned to cut is no longer in stock as planned (`details.remnant_id`, `details.pieces`, `details.available`, `details.status`). Nothing was booked; adjust the sheets or nest again, then release |
| `nest_run_internal` | 409 | The job nest is an assembly calculation's own (`details.run_id`): it prices the assembly's sheet components, so it is never released, kept a simulation, cancelled, started or given a new layout. Nothing was changed; start a job nest of the parts to cut them together |
| `nest_layout_invalid` | 422 | The posted layout cannot be cut, or breaks your shop practice: `details` is the check `POST …/layout-check` answers — every sheet with its `clashes` (`a`, `b`, `gap_mm`), `outside` placements, `unknown_lines`, whether its container is unknown, and `against_shop_practice` (`placement`, `reason` — `grain_direction` with the `allowed_rot_deg` that keep it, or `mirroring`); `missing` and `extra` lines (stated, never a refusal: a layout short of a line's quantity or over it is stored and priced on the copies it cuts); `containers_unknown`; `remnants_over`. Nothing was stored |
| `nest_line_not_found` | 404 | No line with this id in the job nest (`details.line_id`) |
| `nest_line_on_sheets` | 409 | The job nest's active sheets still place the line (`details.line_id`, `details.placed`): take its copies off the sheets and save them as a revision, then take the line out |
| `nest_line_priced` | 409 | A calculation was priced on the line (`details.line_id`, `details.calculations`), so it stays in the job nest |
| `nest_run_nothing_to_export` | 409 | No material and thickness of the job nest is solved yet (`details.status`), so there is no sheet to export. Wait until one is, or until it ends |
| `nest_run_sheet_not_found` | 404 | `sheet` names no sheet of the job nest (`details.sheet`). The nest plan (`format=json`) names every sheet as `<group>:<index>` |
| `sheet_layout_not_found` | 404 | The calculation's price stored no sheet layout to export |
| `sheet_nest_preview_unavailable` | 409 | `POST /calculations/{id}/sheet-nest/preview`: the calculation cannot be laid out on another sheet. `details.reason` is `not_succeeded`, `not_sheet` (not cut from sheet stock), `no_stored_layout` (its price stored no layout), `material_provided` (the customer supplies the material) or `missing_facts` |
| `stock_format_out_of_bounds` | 422 | A sheet size of your own cannot be ordered: `details.reason` is `below_minimum` (`details.min_mm`), `above_maximum` (`details.max_mm`), `machine_cannot_hold` (`details.machine_bed_mm`, the selected machine's bed) or `off_increment_grid` (`details.increment_mm`, the environment's cut-to-size ordering step). `details.length_mm` and `details.width_mm` restate the size |
| `nest_export_timeout` | 503 | The cutting file is still being built: the file route waited 60 seconds. Ask again after `details.retry_after_s` seconds (also the `Retry-After` header), or ask the `…/export-url` route, which answers at once (202 while the file is built) |
| `nest_export_failed` | 500 | The cutting file could not be built (409: the layout changed while it was built). Ask again with `fresh=true` to build it again |
| `nest_export_unavailable` | 503 | Cutting files cannot be queued for building right now. Ask again in a moment |
| `nest_item_unresolved` | 422 | `nest_item_id` names no job-nest line that can price this calculation. `details.reason` says why: `not_found` (no line of your organization has this id), `other_environment` (it was nested in another costing environment), `not_solved` (its job nest has not solved its material and thickness), `not_placed` (no copy of it is on a sheet), `other_part_revision` (it was nested as another part revision — every upload creates a new one, so the upload forms refuse every line), `other_currency` (it was priced in another currency than the environment's), `material_provided` (the customer supplies the material) or `stock_format_pinned` (a stock format is pinned too; send one of the two). On a re-run that kept its parent's line, `details.derived_from_calculation_id` names the parent; send `nest_item_id` null to price the part on its own sheet. Nothing was stored |
| `machine_pin_not_in_fleet` | 422 | `PATCH /parts/{id}/route`: `machine_id` is not in the fleet of the costing environment the part was last priced in (`details.costing_environment_id`), or the part has no priced calculation yet to check it against. Price the part once, then pin a machine of that fleet. Nothing was stored |
| `machine_pin_infeasible` | 422 | `PATCH /parts/{id}/route`: the part's latest calculation found this machine unable to make it; `details.reasons` names the feasibility checks it failed (the same codes the selection verdict carries), or `capability_unknown:<property>` for each capability the machine states that could not be read, when the calculation could not judge it. Pin another machine, or correct that capability or the part. Nothing was stored |
| `operation_placement_unknown` | 422 | `PATCH /parts/{id}/route`: an `operation_placements` key names no operation of the latest calculation's process plan (`details.operation`; `details.operations` lists the keys it has, `<seq>:<process>`). Nothing was stored |
| `operation_placement_unpriced` | 422 | `PATCH /parts/{id}/route`: an operation placed outside names no subcontractor of your organization that prices its process — the shop needs a `machining:<process>` capability (`details.operation_kind`) with a rate row behind it. Nothing was stored |
| `setup_count_out_of_range` | 422 | `PATCH /parts/{id}/route`: `setup_count` is below 1 or above 12 (`details.min`, `details.max`). Nothing was stored |
| `setup_count_not_applicable` | 422 | `PATCH /parts/{id}/route`: the part's latest calculation priced it on a machine that sets up a sheet, not the part (laser, plasma, oxy-fuel, waterjet, punch or shear — `details.machine_klass`); a setup count has no meaning there. Nothing was stored |
| `operation_change_unknown` | 422 | `PATCH /parts/{id}/route`: a removed operation `(op_code, feature_id)` is not on the latest calculation's plan (`details.operations` lists the pairs it has). Nothing was stored |
| `operation_add_unpriceable` | 422 | `PATCH /parts/{id}/route`: an added operation cannot be priced — `details.reason` is `feature_required` (it names no feature), `op_code_not_addable` (`details.supported` lists the op codes that can be added) or `feature_not_planned` (the latest plan has no operation on that feature). Nothing was stored |
| `remnant_not_found` | 404 | No remnant with this id in your organization |
| `remnant_not_in_stock` | 409 | The remnant can't be scrapped: a running job nest holds it, it was consumed or scrapped already, or fewer pieces are in stock than you named (`details.status`, `details.quantity`) |
| `remnant_unresolved` | 422 | The environment or the material grade you named is not one of your organization's (`details.env_id` or `details.material_grade_id`) |
| `remnant_code_invalid` | 422 | `GET /remnants/by-code/{code}`: the code is not a remnant code — hexadecimal digits of the id, at least 8 (`details.min_digits`), or the whole id |
| `remnant_code_ambiguous` | 409 | More than one remnant of your organization begins with this code (`details.matches`). Scan or type more of the id; a label's 12-digit code is unambiguous in practice |
| `nest_run_no_rests` | 404 | `GET /nest-runs/{run_id}/remnant-labels`: the job nest put no rest into stock — it is not released yet (`details.released`), or its sheets leave no reusable rest, or the environment does not keep remnant stock (the shop-practice question `remnant_stock`, answer `kept`) |

### Calibration

Raised identically by every route that fits a calibration: `POST /calibration/environments/{env_id}/teach`, `/finalize`, `/auto-calibrate` and `/auto-calibrate-from-erp`, and `POST /calibration/imports/{import_id}/calibrate`. Any other refusal of a fit answers `unprocessable_entity`, with its reason in `message`.

| Code | Status | Meaning |
|---|---|---|
| `calibration_actuals_out_of_band` | 422 | Your actuals sit further from the environment's predictions than calibration may correct, so nothing was fitted. A gap that size is a missing or wrong input — machine and labour rates, material prices, the shop-practice answers — not a difference between shops a correction can absorb. `details.ratio` is your actuals divided by the prediction (the median over the fit's observations), `details.observations` how many observations that median was taken over, and `details.min` and `details.max` the widest correction calibration may apply. Correct the environment's inputs first, then calibrate. An import refused this way is kept `failed`, and its status carries the same code in `failure_code` and the same figures in `failure_params` |
| `calibration_no_process_bin` | 422 | None of the rows of a fit is filed under a process a price reads, so the fit would change no price and nothing was fitted. A per-process correction is read under `process:<discipline>` (for example `process:milling`) and nowhere else; rows labelled with any other `bin`, or rows without one whose part has no classified process, reach no price. `details.observations` is the number of rows and, when the rows state labels of their own, `details.labels` how many different ones and `details.label` the first. Label each row with the process its part is priced in, or leave the label out, then calibrate again. An import refused this way is kept `failed`, with the same code in `failure_code` and the same figures in `failure_params`. `POST /calibration/imports` answers the same code when the history is sent if a row carries a label that is not read: `details.label` is that label and `details.accepted` the labels that are, and nothing was created or priced |
| `calibration_evidence_kind_refused` | 422 | `POST /calibration/outcomes` records a kind of evidence only once the platform has a surface that writes it; every other kind is refused by name, and nothing in the batch is stored. `message` names the kind, why it is refused (not recorded yet, or recorded by another surface) and the kinds this route records; `details.observation` is the row's index in the batch, `details.kind` the refused name and `details.accepted` the kinds the route records. Omit `kind` to record a row as what its `target_metric` and `observation_type` state |
| `calibration_block_unknown` | 422 | `POST /calibration/outcomes`: an observation names a `block` that is not a row of the cost sheet, and nothing in the batch is stored. `details.observation` is the row's index in the batch, `details.block` the refused name and `details.accepted` the block names the route takes (`material`, `machine`, `labour`, `setup`, `programming`, `inspection`, `inspection_fai`, `tooling`, `overhead`, or `subcontract:<operation>`). Omit `block` to record a row as a total |

### Pay per call (`/pay`)

Answered by `POST /api/v1/pay/price`, `POST /api/v1/pay/supplier-search`,
`POST /api/v1/pay/supplier-match`, a purchase's result URLs and the pay MCP
server. Nothing is charged for any of them. A `402` there is an offer, not
an error: why a payment sent with it was not taken is its challenge's `error`
(`offer_expired`, `amount_mismatch`, `payment_unreadable`, …) — see
[Pay per call](./pay-per-call.md).

| Code | Status | Meaning |
|---|---|---|
| `offer_not_found` | 404 | An `offer_id` sent without a file names no open offer here: unknown, or bought already. Send the file for a new offer. A payment for an offer that isn't open, sent with its file, gets a new offer instead: a `402` whose challenge `error` is `offer_not_found` |
| `file_required` | 402 | An offer paid by `offer_id` alone whose file is no longer kept. Send the file again for a new offer |
| `offer_taken` | 409 | Another payment bought this offer. Ask for a new price: the same request without a payment |
| `payer_blocked` | 403 | This payer may not pay here: it has delivered results it left unpaid, or it was blocked. Pay what those results' URLs ask |
| `sanctioned` | 451 | The request's origin or the payer's address is sanctioned: sanctions law forbids the service |
| `export_controlled` | 422 | The file's header carries an export-control marking (`details.marking`). Files so marked are not priced or calculated, and nothing of this one was kept |
| `file_unreadable` | 422 | No STEP or DXF file that opens. `details.reason` says why, e.g. `no_file` (the request carries no file), `not_json` (a JSON body that doesn't parse), `form_unreadable` (a form that doesn't parse), `no_solid` (a model with no solid) |
| `part_too_complex` | 422 | The model has more faces than this endpoint prices (`details.faces`, `details.solids`, `details.max_faces`). Simplify or split it |
| `nothing_to_price` | 422 | Every part found in the file is a catalogue part: there is nothing to calculate |
| `invalid_text` | 422 | Text that can't be taken: no valid Unicode (a lone surrogate or a NUL character), or not what its field takes |
| `file_too_large` | 413 | A file over the size a CAD file may be (`details.limit_bytes`, `details.limit_mb`) |
| `request_too_large` | 413 | More files or bytes than one request carries (`details.limit_files`, `details.limit_bytes`, `details.limit_mb`). A JSON body, its files as base64, has a smaller cap than a form. Send the rest as another request, or the files as `multipart/form-data` |
| `result_purged` | 410 | The result is no longer kept here; its receipt is (`details.status`) |
| `refunded` | 410 | The result was refunded, or the card payment was disputed with its issuer: it is no longer served |
| `payment_unavailable` | 503 | No payment can be taken here now: the service is paused or not set up, or, for a supplier match, the parts being read or the drawings being checked are at their limit. A payer with no settled purchase also gets it while one reading place is kept for payers with one, and while too many answers were left unpaid in the last 24 hours: then its supplier searches and matches wait (`details.reason`: `new_payers_paused`, `Retry-After` up to a day). Nothing was charged. Try again after `Retry-After` |
| `default_environment_unavailable` | 503 | No offer can be made now: the default costing environment isn't set up. Name one from `GET /api/v1/pay/environments` |
| `assemblies_unavailable` | 503 | A file of several parts can't be priced now: splitting it into parts is switched off. Send each part as a file of its own, or try again later |
| `card_not_accepted` | 402 | A card payment for a supplier search or match. They are paid in USDC over x402 only (`details.accepted`): pay the offer's x402 requirement |
| `expired` | 402 | A paid supplier search or match whose payment ran out before it settled. Nothing was charged and nothing of the answer was shown: send the request again with a new payment |
| `invalid_payment` | 402 | A paid supplier search or match whose payment was refused when it settled. Nothing was charged and nothing of the answer was shown: send the request again with a new payment |
| `atlas_unknown_value` | 422 | A supplier search or match parameter that can't be taken: a value ARCNM Atlas doesn't know, a field it doesn't read, a `limit` outside 1 to 25, or a search with neither `query` nor `params` (`details.param`, `details.value`) |
| `atlas_part_not_step` | 422 | The supplier match reads one STEP file. A DXF flat pattern is priced by the calculation: `details.door` names it |
| `atlas_part_pdf_alone` | 422 | A drawing was sent without its STEP file. Send the STEP file with it |
| `atlas_part_assembly` | 422 | The STEP file holds several parts; the supplier match reads one. The calculation takes a file with several parts: `details.door` names it |
| `atlas_part_too_complex` | 422 | The part has more faces than a supplier match reads (`details.faces`, `details.max_faces`). The calculation takes it: `details.door` names it |
| `atlas_part_drawing_not_pdf` | 422 | The drawing sent with a supplier match is not a PDF |
| `atlas_unavailable` | 503 | ARCNM Atlas isn't served right now. Send the same request again after `Retry-After` |
| `atlas_failed` | 503 | A supplier search failed on our side. Nothing was charged: send it again after `Retry-After` |
| `atlas_part_unreadable` | 422 | A supplier match could not read the part (`details.reason`: `too_complex`, not read within the read's budget; `timed_out`, its read ran out of time, so the file wasn't judged: send it again later; `unreadable`, its geometry could not be read). Nothing was charged. Sent again within an hour, the same file — or the same file with the same drawing, when its read with that drawing failed (`details.reason` then also `drawing_failed`) — is refused before any offer, with `Retry-After` |
| `atlas_not_read` | 503 | Reading the part failed on our side, also when it was read again. Nothing was charged. Send the request again later |
| `atlas_unreadable_limit` | 429 | This payer's parts that couldn't be read in the last 24 hours number three or more, and more than its paid supplier matches (`details.failed`, `details.paid`), so no supplier match is taken from it before `Retry-After`. Nothing was charged; a supplier search stays open |
| `atlas_drawing_unread` | 422 | The drawing sent with a supplier match couldn't be read (`details.reason`: `drawing_failed`), or the part wasn't read with it within the read's budget (`too_complex`, or `timed_out` when the read ran out of time), so the match with it isn't sold. Nothing was charged. `details.offer` is the match for the STEP file alone: send the STEP file without the drawing, with the same parameters, and pay that offer. After `drawing_failed` the part isn't read again; after `too_complex` or `timed_out` the model is read on its own |
| `atlas_drawing_too_complex` | 422 | The drawing sent with a supplier match couldn't be checked within its limits (`details.reason`: `time`, `memory`, `ended` — its reader stopped — or `text`, more than `details.text_max_chars` characters on the pages read). Only its first `details.pages_read` pages are read. Nothing was kept or charged. Send the STEP file alone, or the sheets that matter as a smaller PDF |

### Rate limits & server

| Code | Status | Meaning |
|---|---|---|
| `rate_limited` | 429 | **Burst rate limit** — the per-caller weighted request budget for the current window is spent (`details.limit`, `details.window_seconds`). A pacing problem, not a plan problem: honour `Retry-After` and slow down. Plan-quota exhaustion is `quota_exceeded` (402). A different 429 payload appears when a submit would exceed your plan's pending-calculation bound (`details.reason: "tenant_pending_bound"`, with `pending`, `bound`, `retry_after_s`, `queue_position`, and — for a grid — `cells_requested`): wait for in-flight runs to drain or submit a smaller grid, and don't branch on `details.limit` alone |
| `too_many_requests` | 429 | Auth-route limit exceeded |
| `system_busy` | 503 | Transient overload (connection pool / queue saturation) — the request was **not** processed and cost nothing. Honour `Retry-After`, then retry with backoff |
| `service_unavailable` | 503 | Deploy window or brownout — retry |
| `atlas_starting` | 503 | The health check (`GET /utils/health-check/`) while the service is starting and cannot answer ARCNM Atlas yet. Check again in a moment |
| `storage_unavailable` | 503 | File storage is temporarily unavailable — the upload/download was **not** processed and cost nothing. Retry with backoff |
| `internal_error` | 500 | Unexpected server error — quote the `request_id` in a ticket. Retry with backoff |
| `http_error` | 4xx/5xx | An HTTP error with no more specific code. Branch on the status, and read `message` for the reason |

---

## Cost sheet, what-if preview and scenarios

Every refusal on `GET /calculations/{id}/cost-sheet`, `POST /calculations/{id}/preview` and `/calculations/{id}/scenarios` carries its code in `error.details.reason` and the sentence below in `error.message`. A preview refusal caused by one of the adjustments comes back as `invalid_adjustments` with the per-adjustment codes nested in `error.details.refused[]` (`unknown_factor`, `out_of_band` with `band`, `not_a_number`, `unstamped_key`, `not_an_adjustment`, `no_channel_for_factor`).

| Reason | Status | Meaning |
|---|---|---|
| `calculation_not_priced` | 409 | The calculation has no price yet (queued, running, failed or cancelled), so there is nothing to read or change at any lot size. Run it first |
| `assembly_parent` | 409 | The calculation is an assembly: it prices nothing itself, its components do, and each component's own calculation carries its cost sheet, cost shares and landed cost (`GET /calculations/{id}/bom` names them). The regional screen, the re-price preview and the landed cost answer an assembly with the same reason |
| `priced_under_earlier_model` | 409 | The calculation was priced by an earlier version of the costing model, so a new price worked out from it would move by everything that version changed, not only by your change; create a new calculation for the part revision and run it — that one can be adjusted |
| `quantity_not_on_curve` | 404 | The calculation was not priced at that quantity and records no closed form to restate it from; read it at a quantity its lot-size curve lists |
| `kernel_corrupt` | 404 | The calculation records a closed form that cannot be read; the curve's own quantities still answer — run it again to rebuild the rest |
| `cost_sheet_unavailable` | 409 | The run recorded too little to itemise its price at that quantity. Run it again for a full cost sheet |
| `invalid_adjustments` | 422 | Nothing was priced: at least one change cannot be — `details.refused[]` names each one and why |
| `too_many_adjustments` | 422 | More changes than one what-if answers exactly; `details.limit` is the most at once |
| `lot_size_out_of_band` | 422 | The quantity is outside what a what-if prices; `details.limit` is the ceiling (the same one every calculation accepts) |
| `nothing_to_preview` | 422 | Nothing was changed; the calculation's own cost sheet already carries that answer |
| `machine_key_unscoped` | 422 | The calculation states a machine rate per machine; name the machine (`details.stamped_keys` lists the keys its sheet carries) |
| `route_machines_unknown` | 409 | A machine rate can only be moved for a machine the calculation was priced on; `details.keys` names the ones that could not be matched |
| `geometry_not_reusable` | 409 | The part data the calculation was priced from is no longer on hand; run the calculation again to make it adjustable |
| `geometry_expired` | 410 | The part data was kept for a limited time and has since been removed (`details.expired_at`); run the calculation again |
| `inputs_changed_since_run` | 409 | The part's files or its applied corrections changed after the calculation ran (`details.roles`, `details.corrections`, `details.latest_at`), so a what-if would no longer match its figures; create a new calculation for the part revision and run it to include the change |
| `environment_changed_since_run` | 409 | The costing environment changed after the calculation ran (`details.latest_at`, the same time the calculation's `environment_changed_since_run` states), so a what-if would mix that change into its answer; create a new calculation for the part revision and run it — that one can be adjusted. A saved scenario records the same reason |
| `geometry_store_disabled` | 501 | What-if pricing is not switched on in this deployment yet; an administrator can turn it on |
| `sheet_unavailable` | 409 | The change produced no priceable result; try a different value |
| `not_priceable` | 409 | The calculation could not be priced under the environment's current settings (check its bought-in operation prices), then run it again |
| `compute_budget_exceeded` | 503 | Working the change out took longer than one request may spend; ask for fewer changes at once or a smaller quantity |
| `too_many_scenarios` | 409 | The calculation already holds the most scenarios one may keep (`details.limit`); delete one first |
| `nothing_to_change` | 422 | A scenario update named neither a new name nor new adjustments |

---

## Environment versions, follows and cost regions

A business-rule refusal on `POST /environments/from-catalogue`, `PUT /environments/{id}/subscription`, `POST /environments/{id}/subscription/apply`, `POST /environments/{id}/versions` and `PUT /environments/{id}/channels/{channel}` answers `422 unprocessable_entity` with a stable token in `error.details.reason` and the sentence in `error.message` — branch on the token, never on the sentence.

| Reason | Meaning |
|---|---|
| `follow_policy_unknown` | The follow `policy` is neither `track_channel` nor `pinned` |
| `channel_required` | `track_channel` names no `channel` |
| `version_id_required` | `pinned` names no `version_id` |
| `resolution_unknown` | A resolution is not `keep_mine`, `take_upstream` or `state_value` |
| `resolution_value_required` | A `state_value` resolution names no finite `value` (missing, null, not a number, NaN or infinite); nothing was applied |
| `resolution_value_out_of_range` | A `state_value` for an overhead row is outside the window every rate write holds it to: a percentage is a fraction in [0, 1] (`0.06` for 6 %), any other overhead is ≥ 0; nothing was applied |
| `label_required` | The version label is empty once trimmed |
| `version_status_unknown` | The version status is neither `draft` nor `published` |
| `version_not_published` | The channel was pointed at a draft version; publish it first |
| `channel_name_required` | The channel name is empty once trimmed |
| `channel_reserved` | `latest` and `quarterly` are moved only by the releases of platform and published environments; name your own channel differently (for example `quote-basis`) |
| `catalogue_fleet_unresolvable` | `POST /environments/from-catalogue`: the version being installed names a machine the platform machine library no longer holds, so the installed environment would not carry the version's fleet; nothing was created. `message` names the machines |
| `invalid_request` | Any other value the service refused; read `message` |

`GET /catalogue/environments` refuses a filter it cannot apply with its own `error.code`:

| Code | HTTP | Meaning |
|---|---|---|
| `process_family_unknown` | 422 | A `process_family` is not a machine family; `details.unknown` names the ones sent and `details.known` lists every family |
| `too_many_process_families` | 422 | More than 8 `process_family` values in one request (`details.limit`) |
| `region_unknown` | 422 | `region` is neither a cost region nor an alias of one, in any case; `GET /regions` lists them |

The cost region reads (`GET /regions`, `GET /regions/{code}`, `GET /regions/{code}/drivers`) and a driver's history (`GET /drivers/{key}/history`) refuse with their own `error.code` too:

| Code | HTTP | Meaning |
|---|---|---|
| `region_unknown` | 404 | The code is neither a cost region nor an alias of one, in any case — the path's, or the `region` whose history `GET /drivers/{key}/history` reads; `GET /regions` lists them. Where a request names a region as a filter or a field instead — a `region` filter, an environment's or a logistics profile's region — the same code answers `422` |
| `level_unknown` | 422 | The `level` filter on `GET /regions` is not a region level |
| `driver_unknown` | 422, 404 | `drivers` names a key outside the driver registry; `details.drivers` lists the unknown ones (`details.reason` names the code too) and `GET /drivers` is the registry. `404` on `GET /drivers/{key}/history`, whose `key` is outside the registry |

Two follow refusals answer their own `error.code`, with a sentence in `error.message`:

| Code | HTTP | Meaning |
|---|---|---|
| `nothing_to_revert` | 409 | `POST /environments/{id}/subscription/revert`: the follow has no earlier applied version to restore — it was not updated since it was installed, or its last update was already undone. Until 2026-11-28 this answered `404 not_found` with `nothing_to_revert` as the whole `message` |
| `channel_not_offered` | 422 | `PUT /environments/{id}/subscription` or `POST /environments/from-catalogue` with `track_channel`: the listing does not offer the `channel` — the environment has no such channel, or it points at no version a follow may take; `details.channels` lists the channels it does offer (it may be empty: pin a version instead). Nothing was written. Until 2026-11-28 this answered `404 not_found` with `version_not_found` as the whole `message` |

The routes of the available environments (`/catalogue/environments…`), follows, versions and regions answer what they cannot find, or a state they refuse, with the status's code (`404 not_found`, `409 conflict`, `422 unprocessable_entity`) and a stable token as the whole `error.message`:

| Token | HTTP | Meaning |
|---|---|---|
| `environment_not_found` | 404 | The environment does not exist in your organization |
| `catalogue_environment_not_found` | 404 | The id or address (slug) names no available environment you can read — a suspended or retired organization listing included; `GET /catalogue/environments` lists them |
| `version_not_found` | 404 | The label or id names no version of that environment (for a follow, of the environment it follows) |
| `subscription_not_found` | 404 | The environment follows no upstream environment (it was not installed from Environments) |
| `subscription_conflicts_unresolved` | 409 | The update has conflicts the request did not resolve; `details.conflicts` lists their paths |
| `revert_window_closed` | 409 | The last update is more than 72 hours old; apply the version you want instead |
| `version_label_taken` | 409 | Another version of this environment already has this label |

Refusals about an organization's listing answer `409 conflict` with a stable token in `error.details.reason` and the sentence in `error.message`:

| Reason | HTTP | Meaning |
|---|---|---|
| `upstream_listing_suspended` | 409 | `POST /environments/{id}/subscription/apply`: the listing this environment follows is suspended; the applied version keeps pricing and no new version can be applied until it is reinstated |
| `environment_has_publication` | 409 | `DELETE /environments/{id}`: the environment is published; other organizations keep reading its published versions, so retire the listing instead — the environment stays on record |
| `conflict` with `details.reason: slug_reserved` | 409 | In the app, publishing or editing a listing (`POST /environments/{env_id}/publish`, `PUT /publications/{id}`): the address (`slug`), stated or derived from the title, starts with `arcnm-` — the addresses of ARCNM's own listings (`arcnm-de`, `arcnm-us` …), a link-only listing's included. Choose another address. Nothing was written |
| `conflict` with `details.reason: publisher_name_reserved` | 409 | In the app, publishing or editing a listing (`POST /environments/{env_id}/publish`, `PUT /publications/{id}`): the publisher name is ARCNM's own ("ARCNM", "Arcanum") or reads like it — spaced, dotted, in full-width or look-alike letters, or followed by more words ("arcnm official"). Only ARCNM's own listings carry it. `details.publisher_name` is the name refused; `details.suggested_publisher_name` is your organization's name where that one is free, else `null`. Nothing was written |
| `conflict` with `details.reason: publisher_name_taken` | 409 | The same routes, and submitting (`POST /publications/{id}/submissions`): another organization shows this publisher name on a public listing that is listed or suspended (compared ignoring case and extra spaces) — refused for any listing of yours, a link-only one included; another organization's draft, link-only or retired listing holds no name. One organization may show its name on all its listings. `details.publisher_name` and `details.suggested_publisher_name` as above. Nothing was written |
| `conflict` with `details.reason: publication_title_taken` | 409 | In the app, publishing, editing or submitting a listing (`POST /environments/{env_id}/publish`, `PUT /publications/{id}`, `POST /publications/{id}/submissions`): the title is held, compared ignoring case and extra spaces. `details.scope` says where: `publisher` — another of your listings that is not retired carries it; `public` — the listing is public and another organization's public listing that is listed or suspended carries it (a draft, a link-only or a retired listing holds nothing). `details.title` is the title refused, `details.suggested_title` a free one ("‹title› (‹your publisher name›)" for a public clash). Nothing was written |
| `conflict` with `details.reason: publication_title_reserved` | 409 | The same routes: the title is ARCNM's own — a region's name in English, German, Spanish or Italian ("Germany", "Deutschland", "Alemania", "Germania", "Germany · Bavaria") or a title that reads like ARCNM ("ARCNM Germany", "A R C N M tooling") — refused for a link-only listing too. `details.suggested_title` is "‹title› — ‹your publisher name›" where that no longer reads like ARCNM's, else `null`. Nothing was written |

---

## Logistics profiles, landed cost and market alerts

Refusals on `/logistics-profiles`, `PUT /environments/{id}/logistics-profile`, `PUT /folders/{id}/logistics-profile`, `GET /calculations/{id}/landed-cost`, `/alerts` and `POST /calculations/reprice`. Every calculation entry point that takes a `logistics_profile_id` answers `logistics_profile_not_found` for a profile outside your organization before it stores anything. What the landed cost is and how each line is priced: [Landed cost](./concepts/landed-cost.md).

| Code | HTTP | Meaning |
|---|---|---|
| `logistics_profile_not_found` | 404 | The logistics profile does not exist in your organization |
| `logistics_profile_name_taken` | 409 | Another logistics profile of your organization already has this name (`details.name`) |
| `name_required` | 422 | A logistics profile's or an alert rule's name is empty once trimmed |
| `environment_not_found` | 404 | `PUT /environments/{id}/logistics-profile` names an environment outside your organization, or an `environment` alert rule's `scope_id` does |
| `destination_region_required` | 422 | A logistics profile needs a destination region |
| `brokerage_currency_required` | 422 | A brokerage amount was stated without its currency, or a currency without an amount |
| `region_unknown` | 422 | A region code is not a cost region or an alias of one, in any case (the environment routes answer the same way); `GET /regions` lists them |
| `calculation_not_found` | 404 | `GET /calculations/{id}/landed-cost` names a calculation outside your organization |
| `landed_cost_inputs_missing` | 422 | The calculation did not record the part's mass or envelope, so no landed cost can be computed for it |
| `logistics_profile_required` | 422 | The what-if named no profile and neither the calculation, its part's folders nor its environment has one |
| `logistics_profile_inline_conflict` | 422 | The what-if named both a `logistics_profile_id` and a `destination_region`; name one |
| `logistics_inline_requires_destination` | 422 | The what-if sent `origin_region`, `incoterm` or `mode` without the `destination_region` they describe |
| `alert_rule_not_found` | 404 | The alert rule does not exist in your organization |
| `alert_rule_name_taken` | 409 | Another alert rule of your organization already has this name |
| `alert_delivery_not_found` | 404 | The alert delivery does not exist in your organization |
| `timezone_unknown` | 422 | `timezone` is not an IANA timezone name (for example `Europe/Berlin`) |
| `driver_unknown` | 422 | `drivers` names a key outside the driver registry; `GET /drivers` is the registry |
| `scope_id_required` | 422 | An `environment` or `part_set` scope names no `scope_id` |
| `scope_id_not_allowed` | 422 | An organization-wide rule names a `scope_id` |
| `folder_not_found` | 404 | A `part_set` rule's `scope_id` is not a folder of your organization, or `PUT /folders/{id}/logistics-profile` names a folder outside it |
| `channel_not_available` | 422 | A `source_outage` rule asked for the `webhook` channel; outages send no webhook, so choose `in_app` or `email` |
| `field_not_nullable` | 422 | An update sent `null` for a field that must keep a value (`details.fields`) |
| `reprice_source_ambiguous` | 422 | `POST /calculations/reprice` needs exactly one of `calculation_ids` and `alert_delivery_id` |
| `nothing_to_reprice` | 422 | None of the calculations the alert reported is still current; each was re-priced or superseded since |
| `reprice_inputs_changed` | 422 | `POST /calculations/{id}/reprice`: the part's drawing, mesh or RFQ text changed after the calculation ran (`details.roles`, `details.latest_at`), so it is a new part; send `re_extract: true` to read the new files. The batch re-price skips such a source with reason `inputs_changed` instead |

`GET /market/events` refuses a filter it cannot apply with `422 unprocessable_entity` and a stable token in `error.details.reason` — `driver_unknown` for a `driver` outside the registry (also its `error.code`; `details.drivers` names the unknown ones), and the two below. An unknown `region` is a `422` with the code `region_unknown`, as on the catalogue filter (`GET /regions` lists the codes and aliases), and a `cursor` minted under other filters is `400 invalid_cursor`.

| Reason | Meaning |
|---|---|
| `kind_unknown` | `kind` names something other than `move`, `revision`, `source_outage` or `version_published`; `details.kinds` lists the kinds you can ask for |
| `window_invalid` | `until` is before `since` |

---

## ARCNM Atlas

Refusals of ARCNM Atlas in the ARCNM app and on its public pages: search and suggestions, company profiles and their evidence, reports and suggested shops, the check that you are a person, part search (`/atlas/parts`), saved searches, the shortlist and the links in alert mails. The atlas answers people in a browser: an API key or a scoped grant gets `404 not_found` on these routes. The matched suppliers of a calculation (`GET /calculations/{id}/supplier-matches`) answer `atlas_unavailable` too.

| Code | Status | Meaning |
|---|---|---|
| `atlas_unavailable` | 503 | ARCNM Atlas is starting, or no directory is published right now, so nothing can be searched or matched. Searching, profiles, part search, saving a search, confirming an alert, *Add your shop* and a calculation's matched suppliers answer it. Wait for `Retry-After` when it is sent, then try again |
| `atlas_unknown_value` | 422 | A search parameter holds a value the atlas does not know — a filter value it cannot read, or a `seed` that is neither today's nor yesterday's UTC date (a list's own `seed`). `details.param` names the parameter, `details.value` what was sent. Saving a search the atlas would refuse answers it too |
| `atlas_rate_limit` | 429 | Too many requests of one kind in a short time — searches, suggestions, reports, corrections, suggested shops, challenge attempts and the like. Signed in, they count per account (and every account behind one address shares a higher ceiling); without signing in, per address. `details.reached` names the limit, `details.limit` and `details.window_seconds` its size, `details.retry_after_s` (and `Retry-After`) when the window turns. Wait, then try again |
| `atlas_challenge_required` | 429 | Without signing in, this address opened more companies today than a person usually does. Pass the check that you are a person (`POST /atlas/challenge`, named in `details.verify`), then open the company again — or sign in: a signed-in person is never asked. The daily limits still hold |
| `atlas_challenge_failed` | 422 | `POST /atlas/challenge`: the check that you are a person did not pass. Reload the check and try again |
| `atlas_evidence_unavailable` | 503 | A company's full evidence cannot be opened for a moment. The list, the map and the profiles still work; try again shortly |
| `atlas_evidence_limit` | 429 | You opened the full evidence of more companies today than the daily limit (`details.limit`: 200 per address without signing in, 2000 per account signed in). Without an account `details.sign_in` is `true`: sign in to continue; signed in, try again on the next UTC day |
| `atlas_profile_limit` | 429 | You opened more company profiles today than the daily limit (`details.limit`: 400 per address without signing in, 4000 per account signed in). Without an account `details.sign_in` is `true`: sign in to continue; signed in, try again on the next UTC day |
| `atlas_removal_needs_proof` | 422 | A report asked to remove a listing. Only the company removes its own listing, by proving control — `details.remove_url` is the page for it. Anybody else reports an error instead |
| `atlas_report_decision` | 422 | An operator closed a report about a listing without a decision or without its reason. A report closes with both: the reporter who gave an address is told them |
| `atlas_part_unavailable` | 503 | Part search is unavailable for a moment; searching by criteria still works. Try again shortly |
| `atlas_part_busy` | 503 | Every reading slot is taken, so the part could not start being read right away (`details.reached` is `queue`). The upload answers it, and so does `GET /atlas/parts/{id}` for a part whose reading did not start in time; nothing of the part is kept. Signing in does not help (`details.sign_in` is `false`); upload the part again |
| `atlas_part_step_required` | 422 | The upload carries no STEP model. Add the part's STEP model |
| `atlas_part_pdf_alone` | 422 | The upload is a PDF drawing alone. Part search reads a STEP model, with its drawing as a companion; a drawing alone is priced as a calculation once you sign in (`details.sign_in` says whether you still need to) |
| `atlas_part_not_step` | 422 | The model is not a STEP file: its name says another kind of file (`details.kind` names it), or its content does not open as STEP (`details.kind` is `other`). Export the part as STEP (`.step`, `.stp`) |
| `atlas_part_step_truncated` | 422 | The STEP model stops before its end: it was cut off on its way. Export it or send it again |
| `atlas_part_drawing_not_pdf` | 422 | The drawing is not a PDF, by its name (`details.kind`) or by its content. The drawing is read from a PDF's text layer: add it as PDF |
| `atlas_part_drawing_unreadable` | 422 | The drawing does not open as a PDF: it is damaged, cut off or protected by a password. Export it as PDF again |
| `atlas_part_empty` | 422 | The STEP model or the drawing is an empty file (`details.role` names it) |
| `atlas_part_limit` | 429 | The limit for reading parts is reached. Without an account `details.sign_in` is `true` and `details.lifted_by` is `free_account`: sign in to continue. Signed in it is `false`: reading works again when the window ends. `details.reached` names the limit, `details.limit` its size, `details.retry_after_s` (and `Retry-After`) when it ends |
| `atlas_part_too_large` | 413 | The STEP model or the PDF drawing is larger than part search reads: `details.role` names the file, `details.max_bytes` the most it takes |
| `atlas_part_challenge` | 403 | Without signing in, the check that you are a person did not pass for this upload. Reload the page and upload again |
| `atlas_part_no_org` | 403 | You are signed in with no organization chosen. Choose one, then upload the part |
| `atlas_part_expired` | 410 | The part is gone: it was deleted, its hour is over, or — when you keep it in your organization — nothing of it can be kept. Upload it again |
| `atlas_part_no_mesh` | 404 | The part has no 3D preview: it is still being read, it is an assembly, or it is too heavy for a preview |
| `atlas_part_no_drawing` | 404 | The part has no drawing to show: none was uploaded with it, or its first page gives no picture |
| `atlas_part_claimed` | 409 | The part belongs to your organization now; delete it there, not in part search |
| `atlas_part_has_drawing` | 409 | The part already has its drawing: one drawing per part. To read another one, upload the part again with it |
| `atlas_part_not_read` | 409 | A drawing can be added only to a single part whose reading has finished. Upload the part together with its drawing instead |
| `saved_search_not_found` | 404 | You have no saved search with this id; another person's answers the same |
| `saved_search_too_long` | 422 | The search is too long to save. Remove some filters, then save it |
| `saved_search_empty` | 422 | The search holds no filter besides the map's view. Choose at least one filter, then save it |
| `saved_search_limit` | 409 | You keep 50 saved searches, the most one person keeps. Delete one first |
| `alert_queue_unavailable` | 503 | The alert's confirmation mail cannot be sent right now; the alert waits for its confirmation. Switch it on again in a minute |
| `alert_link_invalid` | 404 | The alert link is not valid: it is altered or incomplete, or a stop link was used to confirm (or the reverse). Use the link from the latest mail |
| `alert_link_expired` | 410 | The confirmation link is older than 7 days, or a newer confirmation was asked for since. Switch the alert on again for a new link |
| `shortlist_key` | 422 | The shop in the path and the shop in the body differ. Name the same shop in both |
| `shortlist_full` | 409 | Your shortlist holds 50 shops, the most it keeps. Remove one first |

---

## Atlas listings

Refusals of a shop's own listing in the ARCNM app (`/atlas-listing/…`): claiming it with a proof of control, its members, its facts, capabilities, sites, certificates and images, its change history, *Add your shop* and listings by declaration — and, without an account, removing a listing and answering the notice sent to the company's imprint address. Signed-in routes act in the listing organization's session: another organization's listing answers `listing_not_found`. An API key or a scoped grant gets `404 not_found` on these routes.

| Code | Status | Meaning |
|---|---|---|
| `listing_not_found` | 404 | No listing at this key that you can see: the key is not a company the atlas holds, the listing belongs to another organization than the one you act in, or — confirming notifications — you are not a member of it |
| `listing_not_member` | 403 | You are not an active member of this listing. Only members who proved control of the shop act on it: prove control first |
| `listing_owner_required` | 403 | Only an owner of the listing may do this; only the primary owner transfers primary ownership |
| `listing_wait` | 403 | A sensitive change (admitting or inviting an owner, changing a role, removing an owner, transferring primary ownership, the website or contact page, visibility, removal, reverting a sensitive change) waits 7 days after a member joined, unless their proof is a website, letter, imprint-mailbox or document proof. `details.allowed_at` says from when |
| `listing_proof_lapsed` | 403 / 409 | 403: your own proof of control has lapsed — renew it to change the listing. 409: the proof of the member you act on has lapsed (approving a request, transferring primary ownership), or you open a dispute without a current proof — prove control first |
| `listing_frozen` | 409 | The listing is frozen until a dispute is decided: nothing on it changes and nobody claims it meanwhile. `details.reason` says why, where it is sent |
| `listing_member_not_found` | 404 | The listing has no member with this id |
| `listing_request_closed` | 409 | The access request is no longer open: it was approved or declined already |
| `listing_role_refused` | 409 | The role change is refused: the member is not active, or is the primary owner (transfer primary ownership first). A transfer names another active member |
| `listing_primary_owner` | 409 | The primary owner is not removed; they transfer primary ownership first |
| `listing_no_request` | 404 | Opening a dispute: you have no access request on this listing that is waiting or was declined |
| `listing_method_upload` | 422 | The document proof starts with its upload (`POST /atlas-listing/companies/{key}/proofs/document`), not with a start |
| `listing_method_no_address` | 422 | Only the mailbox proof takes an email address; send none with the other methods |
| `listing_method_needs_website` | 422 | The shop has no website: prove control by the letter to its registered address or by a register extract. `details.method` names the method refused |
| `listing_method_unavailable` | 422 | This proof cannot be carried out here (for example a code by SMS where no SMS is sent). Choose another proof: the claim page (`GET /atlas-listing/companies/{key}`) and the removal page (`GET /atlas-listing/removal/{key}`) list the ones that work. `details.method` names the method refused |
| `listing_method_not_website` | 422 | Only a website proof (DNS record, file or meta tag) is checked |
| `listing_method_no_code` | 400 | The proof has no code to enter: a website proof is checked instead |
| `listing_method_not_instant` | 400 | Removing a listing takes an instant proof: a mailbox at the domain, the published phone number, the imprint mailbox or a website proof |
| `listing_address_refused` | 422 | The email address is no proof for this listing: it must be a mailbox at the company's own domain, not a free-mail, disposable or website-builder address. The same holds for inviting a colleague. `details.reason` says why |
| `listing_code_invalid` | 400 | The code is wrong, expired or used up: ask for a new one. Removing a listing, it also means the removal is unknown or expired — or, checking a website, that it was started with another proof; with a letter's code, that the code is not one of this listing's letters |
| `listing_challenge_failed` | 403 | Removing a listing with the code of ARCNM's letter, without an account: the check that you are a person (Turnstile) did not pass. Reload the page and try again |
| `listing_codes_unavailable` | 503 | Codes and links cannot be sent or checked right now. Try again in a moment |
| `listing_limit` | 429 | Too many attempts of one kind (codes, website checks, letters, invitations, image uploads, registrations, declarations). A removal's website-proof instructions send nothing and are counted on their own (`removal_instructions`), never against the codes. `details.limit` names the limit, `details.retry_after_s` (and `Retry-After`) when you can try again |
| `listing_queue_unavailable` | 503 | What you asked for — a code, a letter, an invitation, a website check — cannot be sent right now. Try again in a moment |
| `listing_letters_unavailable` | 503 | Letters to the registered address are not available yet. Choose another proof |
| `listing_link_invalid` | 400 / 422 | The link is not valid: altered, expired, or opened by another account than the one it was sent to. 400 for a proof link, an invitation and the imprint notice; 422 for confirming notifications and for a removal link, which also answers this once used |
| `listing_link_used` | 400 | The link was used already: each one works once |
| `listing_notice_stale` | 410 | The imprint notice no longer applies: the listing was claimed again since, or is gone |
| `listing_document_too_large` | 422 | A proof or certificate document is larger than 10 MB |
| `listing_document_type` | 422 | A proof or certificate document is not a PDF, PNG or JPEG file |
| `listing_text_too_long` | 422 | A text of the listing or of a declaration is too long: `details.field` names it, `details.limit` its most characters. This and the four codes below are refusals by an automated check of the shop's own words: nothing was saved, and the answer is the statement of reasons — the message says so, and `details.statement` carries it (`restriction: not_saved`, `automated: true`, `source: own_review`, `ground: terms`, `clause: annex_2_no_4`, and `object_to`, the address a person reviews objections at) |
| `listing_personal_data` | 422 | A text holds an email address or a phone number; the listing's texts carry neither. `details.field` names it |
| `listing_foreign_link` | 422 | A text, the website or the contact page links to another website than the company's own; a listing by declaration's identity carries no link at all. `details.field` names it |
| `listing_text_repeated` | 422 | A text repeats a word as filler (three times running, or more than 8 times). `details.field` names it |
| `listing_text_capability_list` | 422 | A text is a list of process and machine names; choose them under what the shop makes instead. `details.field` names it |
| `listing_language` | 422 | Languages are two-letter codes (`en`, `de`) |
| `listing_material` | 422 | A material family is not one the atlas knows; `details.values` lists the unknown ones |
| `listing_pause_date` | 422 | Pausing the listing needs a date in the future |
| `listing_site_address` | 422 | A production site needs street, postcode and town |
| `listing_site_country` | 422 | A production site's country is a two-letter code |
| `listing_site_position` | 422 | A production site has both coordinates or neither |
| `listing_certificate_fields` | 422 | A certificate needs its issuer, number and validity |
| `listing_certificate_dates` | 422 | A certificate's start of validity is after its end |
| `listing_correction_empty` | 422 | Correcting a capability the website states needs the corrected limits |
| `listing_machine_required` | 422 | A declared limit needs the machine it belongs to |
| `listing_declared_cap` | 422 | The listing declares the most processes it may (`details.cap`, 30). Remove one first |
| `listing_limit_property` | 422 | A limit is not one of this machine class: `details.property_id` names it, `details.allowed` lists the ones it takes |
| `listing_limit_unit` | 422 | A limit's unit is not recognised (`details.property_id`) |
| `listing_limit_value` | 422 | A sheet format needs two sides (`details.property_id`) |
| `listing_limit_implausible` | 422 | A limit lies outside what this machine class can do: `details.property_id` names it, `details.bounds` the range it accepts |
| `listing_claim_not_found` | 404 | The company's website states no such capability to confirm, correct or remove |
| `listing_concept_not_found` | 404 | No such capability, machine or certification in the taxonomy |
| `listing_declaration_not_found` | 404 | Nothing is declared in that slot |
| `listing_slot` | 422 | Changing a declared machine: the body's `concept_id` differs from the one in the path |
| `listing_fact_not_found` | 404 | The listing has no fact of that name to set |
| `listing_site_not_found` | 404 | The listing has no production site with this id |
| `listing_certificate_not_found` | 404 | The listing has no certificate with this id |
| `listing_media_not_found` | 404 | The listing has no image with this id — or, removing the logo, no logo |
| `listing_media_gone` | 409 | The image was deleted for good and cannot be restored, so the change that would show it again is refused |
| `listing_document_gone` | 409 | The certificate's document was deleted for good and cannot be restored, so the change that would show it again is refused |
| `listing_media_limit` | 409 | A listing shows at most 12 photos (`details.max_photos`). Remove one first |
| `listing_media_type` | 422 | An image is not a JPEG, PNG or WebP file |
| `listing_media_svg` | 422 | SVG images are not accepted, as they can carry scripts. Upload a PNG, JPEG or WebP image |
| `listing_media_too_large` | 422 | An image is too large: `details.limit` is `bytes` (at most 10 MB, `details.max_bytes`) or `pixels` (at most 40 megapixels, `details.max_pixels`) |
| `listing_media_unreadable` | 422 | An image could not be read. Export it again and upload it |
| `listing_media_order` | 422 | A new photo order names each photo the listing shows exactly once; `details.photos` lists them |
| `listing_not_revertible` | 409 | This kind of change cannot be reverted |
| `listing_already_reverted` | 409 | The change was reverted already |
| `listing_revert_expired` | 409 | Changes can be reverted for 90 days; this one is older |
| `registration_website_refused` | 422 | The address cannot be a shop's own website: it is a mail provider's or a website platform's. Enter the company's own site. `details.reason` says why, `details.field` is `website` |
| `registration_not_found` | 404 | You have no *Add your shop* request with this id |
| `declared_limit` | 409 | You hold two listings by declaration (draft or live), the most one person may (`details.limit`). Withdraw a draft first |
| `declared_listed` | 409 | The atlas lists this company already: claim that listing instead — `details.company_key` and `details.slug` lead to it |
| `declared_duplicate` | 409 | This company has been declared already; whose declaration it is, is not said |
| `declared_reading` | 409 | The company's website is being read for *Add your shop*; its answer comes first |
| `declared_identity_missing` | 422 | An identity fact is missing: `details.field` names it (the legal name, street, town, postcode, or the register or VAT number — one of the two is needed) |
| `declared_country` | 422 | The country is not one of the atlas (`details.field` is `country`) |
| `declared_register_format` | 422 | Not a register number of this country: `details.country`, and `details.example` where one is known |
| `declared_vat_format` | 422 | Not a VAT number of this country (`details.country`) |
| `declared_company_type` | 422 | The kind of shop is not one the atlas lists |
| `declared_not_found` | 404 | You have no declaration with this id — or, publishing, no active member of the listing declared it |
| `declared_live` | 409 | A live listing is not withdrawn here; remove it from the listing itself |
| `declared_state` | 409 | The declaration is not waiting for a proof (it is live, withdrawn or refused), so no letter goes out for it |
| `declared_proof_required` | 409 | Publishing a listing by declaration: no active member holds a strong proof of control yet — your own draft before its proof answers the same. Prove control first |
| `declared_no_process` | 422 | Publishing a listing by declaration: it offers no process or machine yet. Name a process the shop makes first |

---

## Registered shops' quotes

Refusals of a registered shop's quoting in the ARCNM app (`/atlas-listing/quoting/listings/{key}/…`): naming the environment it quotes in, quote proposals and their documents, and the machines it publishes. Access is the listing's: `listing_not_found`, `listing_not_member`, `listing_proof_lapsed` and `listing_frozen` answer as under [Atlas listings](#atlas-listings). An API key or a scoped grant gets `404 not_found` on these routes.

| Code | Status | Meaning |
|---|---|---|
| `registered_environment_not_found` | 404 | Naming the quoting environment: your organization has no costing environment with this id |
| `registered_no_setup` | 422 | Name the environment the shop quotes in first (`PUT …/setup`), then create a quote or publish a machine |
| `registered_calculation` | 422 | Creating a quote: your organization has no calculation with this id |
| `registered_calculation_other_environment` | 422 | The calculation was priced in another environment than the shop's quoting environment. Price the part there, then quote it |
| `registered_calculation_not_priced` | 409 | The calculation has no price yet. Run it to completion, then quote it |
| `registered_calculation_gone` | 409 | Changing the lot grid: the proposal's calculation was deleted, so no lot can be priced again. Start a new proposal |
| `registered_quote_not_found` | 404 | The listing has no quote with this id |
| `registered_quote_issued` | 409 | An issued quote document is frozen and is not changed |
| `registered_lot_quantity` | 422 | A lot is a whole number of pieces, from 1 to 1,000,000,000 |
| `registered_lot_duplicate` | 422 | Each lot size appears once in the grid |
| `registered_lot_price` | 422 | A unit price is a number from 0 to 1,000,000,000 |
| `registered_lot_count` | 422 | A quote has 1 to 8 lots |
| `registered_text_too_long` | 422 | A text is too long: `details.field` names it, `details.max` its most characters |
| `registered_lot_unpriced` | 422 | Issuing: a lot has neither your price nor a calculated one (`details.quantity`). Price it, then issue |
| `registered_valid_until` | 422 | Issuing: the validity date is already past. Choose a later one |
| `registered_quote_draft` | 422 | The PDF comes once the quote is issued; a proposal has the HTML preview (`format=html`) |
| `registered_machine_not_found` | 404 | The quoting environment has no machine with this id |
| `registered_machine_unmapped` | 422 | The machine's class has no capability in the atlas' taxonomy, so it cannot be published |
| `registered_nothing_confirmed` | 422 | None of the confirmed figures is one of the machine's: confirm at least one (`details.words` lists them) |
| `registered_publication_not_found` | 404 | The listing has no standing publication with this id: it is unknown or revoked already |

---

## Debugging a request

1. **Capture `X-Request-ID`** from the response — we log every request
   with this id.
2. **Read `error.details`** for the offending field / limit.
3. **Check the API health endpoint**,
   `https://api.arcnm.io/api/v1/utils/health-check/` — it answers `true`
   while the API is serving requests; during an outage it answers a 5xx
   or not at all.
4. **File a ticket** at `hello@arcnm.io` with the request id and
   timestamp (redact secrets).

---

## Retry guidance

| Code | Safe to retry? |
|---|---|
| `429 rate_limited` / `too_many_requests` | Yes — honour `Retry-After` when present, else exponential backoff |
| `503 system_busy` / `service_unavailable` / `storage_unavailable` | Yes — wait `Retry-After` when present, then exponential backoff |
| `5xx` (other) | Yes — exponential backoff (start 1s, cap 30s, ~5 retries) |
| `402 insufficient_funds` | Only after topping up the wallet |
| `4xx` (other) | No — fix the request first |

Pair [idempotency keys](./idempotency.md) with retries so repeated
attempts don't create duplicate billable calculations. For ready-to-paste
backoff loops (Python / TypeScript / Bash), see
[Rate limits → Retry strategy](./rate-limits.md#retry-strategy).

---

## See also

- [Idempotency](./idempotency.md) — safe-retry contract.
- [Rate limits](./rate-limits.md) — the 429 envelope.
- [Authentication](./authentication.md) — `invalid_api_key`, `insufficient_scope`.
