Two failure channels
A request rejected before admission returns an HTTP error with this JSON shape:
{
"type":"urn:xangle:problem:idempotency_key_required",
"status":400,
"code":"idempotency_key_required",
"detail":"Supply an Idempotency-Key of 1 to 128 visible ASCII characters."
}
Use HTTP status and code to handle errors. Do not parse detail as a stable protocol field. Server-side errors at status 500 or above hide their internal detail behind “The API request failed. See the application log.”
An action that fails after durable admission normally returns HTTP 200 with {operation,replayed}. The operation has state:"failed" or "partially_succeeded" and an error such as {code,message,status}.
Inspect the operation as well as the HTTP status. The nested status is diagnostic; it does not change the outer HTTP status. Some asynchronous timeline errors contain code/message without status.
Initial executor failures retain cleanup diagnostics in operation.error.cleanup when supplied. Their error.status uses the executor's status, falling back to statusCode, then 500. Aborting managed execution during initial preparation records cancelled, not failed; inspect any retained cleanup diagnostics.
After SSE headers are sent, a stream failure may appear as event: api.error with {code}, followed by disconnect, rather than a new HTTP error.
Host JSON parsing, filesystem, and transport failures can occur outside the API's error formatter. Inspect the status and content type before assuming every non-success response has this JSON shape.
Rejection and diagnostic codes
These tables cover the foundation and public handlers. Shared validators can supply detailed messages and executor errors; not every node/transport error has a dedicated public code.
| HTTP status | Code | Action |
|---|---|---|
| 400 | query_credentials_forbidden |
Remove credential query parameters; no API token is required |
| 400 | invalid_document, validation_failed |
Correct the document/envelope; run dry validation |
| 400 | unknown_field, invalid_phase, invalid_preparation_timing |
Use only documented action fields and timing ranges |
| 400 | invalid_name, invalid_description, invalid_members, unknown_camera |
Correct the group payload against the current/saved camera list |
| 400 | invalid_enabled |
Send a boolean enabled |
| 400 | invalid_camera_numbers |
Use positive integer camera numbers from Camera List, at most 256 |
| 400 | unsafe_dataset |
Use a safe dataset name, not a path |
| 400 | idempotency_key_required |
Supply 1 through 128 visible ASCII characters |
| 400 | invalid_cursor, invalid_event_type, invalid_pagination |
Fix the route's supported cursor/filter/paging values |
| 403 | network_access_disabled |
Use localhost, or ask the operator to permit access from other computers on a trusted network |
| 403 | api_host_denied |
Use the Camera Server computer's accepted hostname or interface address; do not bypass Host checks |
| 403 | integration_origin_denied |
Use a local backend/CLI, not browser JavaScript |
| 403 | api_entitlement_required, entitlement_required |
Restore a valid Camera Server license or trial |
| 403 | unsupported_action, unsafe_setting |
Remove public-excluded actions or internal setting names |
| 404 | not_found |
Re-read the relevant camera, group, document, dataset, or file list |
| 404 | operation_not_found |
Re-read shared API history and use a returned operation ID |
| 404 | unknown_camera_number |
Re-read Camera List; do not substitute another camera |
| 404 | timeline_not_found |
Fix a referenced timeline ID |
| 409 | revision_conflict |
Reload the current revision and reconcile edits |
| 409 | ambiguous_camera_number |
Reconcile duplicate assignments in Camera List; do not guess a serial |
| 409 | camera_unavailable |
Reconnect the selected camera before reading its setting descriptors |
| 409 | already_exists |
Use revision-aware PUT instead of repeating create |
| 409 | system_group, group_selected, duplicate_name |
Respect Main/system restrictions, select another zone in the desktop, or choose another name |
| 409 | configured_trigger_unsupported |
Advanced /captures/warmup-trigger rejects unsupported photo-preparation configurations; use /trigger-managed for configured button semantics |
| 409 | managed_trigger_recursion |
Remove trigger-managed from trigger-bound timelines, including nested repeats; a running timeline cannot invoke a bound timeline through this step |
| 409 | idempotency_conflict |
Reconcile the original key's action; never change a key to conceal uncertainty |
| 409 | idempotency_ambiguous |
Multiple preserved legacy records share this key; reconcile history, never redispatch with a replacement key |
| 410 | event_cursor_expired |
Read operation/resource state and reconnect from retained history |
| 410 | operation_expired |
Full operation details were compacted; reconcile saved results and resource state |
| 410 | idempotency_expired |
The old key remains reserved; do not replace it to force another execution |
| 413 | document_too_large |
Reduce document source to 256 KiB or less |
| 428 | revision_required |
Supply expectedRevision on script PUT |
| 429 | rate_limited |
Honor Retry-After; retain the same action key |
| 429 | event_subscription_limit |
Close surplus SSE connections |
Execution and engine diagnostics can appear in operations or event errors:
| Code | Meaning |
|---|---|
runner_busy |
Another timeline is active; the public run handler assigns status 409 |
not_active |
The shared API timeline or managed operation is no longer active; abort records status 409 |
trigger_service_unavailable |
Managed trigger service is unavailable; status 503 |
trigger_cancelled, trigger_failed |
Managed execution was cancelled or failed; inspect its terminal operation and any cleanup error |
no_cameras_selected |
Managed preflight without a bound timeline found no enabled cameras in the selection; operation.error has code:"no_cameras_selected" and status:404. Check the selected zone and enabled cameras. This rejection sends no hardware abort commands |
automation_changed |
Graph changed or was disabled before a future effect; status 409 |
setting_dispatch_failed |
One or more setting targets failed; inspect per-camera outcomes |
desired_setting_persistence_failed |
Accepted setting dispatch with a remembered-setting persistence warning |
cleanup_failed |
Warmup cleanup transport failed; inspect cleanup outcomes |
execution_failed, script_failed |
Executor or asynchronous timeline failed without a more specific code |
server_restarted |
Unfinished operation was marked interrupted; no automatic replay |
request_failed |
Handler exception without a dedicated public code; status comes from the underlying error or defaults to 500 |
admission_required |
Internal integration-run boundary rejected missing durable admission; status 403 |
invalid_operation_state, operation_terminal |
Internal ledger update rejected an invalid state (400) or terminal-state change (409); no public state-write endpoint exists |
event_too_large |
Publisher rejected an event larger than 256 KiB (413); no public event-publish endpoint exists |
internal_error, event_stream_failed |
Fallback error without a more specific code |
An empty external camera target can fail with diagnostic status 404; an unavailable/disabled target or peer lock can fail with 409; a descriptor setting/value can fail with 400. Depending on when detected, these appear in operation.error rather than an HTTP rejection.
Resource ceilings
| Resource | Current limit |
|---|---|
| API HTTP requests | 300 per minute shared across API clients; fixed window |
| SSE subscriptions | 8 simultaneous streams shared across API clients |
| SSE authorization recheck | On delivery and at most 5 seconds between heartbeat checks |
| Retained event journal | 2000 events |
| Event polling | Default 100, maximum 500 entries per page |
| Operation polling | Default 100, maximum 500 records per page |
| Full operation history | Latest 10000 completed records plus all accepted/running work; automatic compaction |
| Compact retry receipts | No automatic expiry; disk use grows with distinct operations, without a fixed admission-count stop |
| Group/script name | 128 characters |
| Group/timeline description | 512 characters |
| Persistent group membership | 256 supplied camera numbers |
| Script document / event envelope | 256 KiB |
| Host JSON request parser | 4 MiB for ordinary requests; script source still has its stricter limit |
| Timeline expanded steps / repeat count / repeat depth | 500 / 100 / 2 |
| Timeline groups per kind / members per group | 32 / 256 |
| Camera timeline group ID | 64 characters |
| Step trailing pause | 600000 ms; default 250 ms |
| Shot actions / maximum offset | 256 / 3600000 ms |
| Burst duration / maxFrames | Greater than 0 through 600000 ms / 0 through 500 |
| Explicit photo warmup / countdown | Integer 0 through 5000 ms / 0 through 8000 ms; waits for the maximum |
| Event graph nodes / edges / conditions per event node | 64 / 128 / 16 |
| Event node/edge ID / condition string | 128 / 256 characters |
| Event delay/debounce / chain depth | 600000 ms / 3 |
| Light effect frames / framerate | 2 through 600 / positive through 120; event framerate minimum 1 |
| Timeline light-effect duration / event light-effect duration | 600000 ms / 3600000 ms |
| GPIO pin / pulse duration | 0 through 27 / at most 3600000 ms |
There is no public operation-history delete or storage-reset endpoint. Do not remove history to make retries appear new.