Reference
Errors
When Slurry itself refuses a request, it answers with one envelope, everywhere. When the simulated API fails on purpose, it answers the way that API would.
The envelope
The management API and every simulation host use the same body when Slurry is the one speaking. type is always slurry_error, docs_url links to the row for that code on this page, and request_id identifies the request in our logs. On simulation hosts the x-slurry-error header carries the code as well.
{
"error": {
"type": "slurry_error",
"code": "ip_not_allowed",
"message": "Requests from 203.0.113.9 are not on this simulation's IP allow-list",
"docs_url": "https://slurry.io/docs/errors#ip_not_allowed",
"request_id": "req_01J8Z6Q4M2V7K3T9"
}
}Slurry error or simulated vendor error?
Errors produced by your rules, scenarios or Slurry-Force are part of the simulation (a committed_error fault answers with one after the write has landed): they use the error schema from the API's spec where it has one, never set type: slurry_error and never send x-slurry-error. Where the spec defines no error schema, the body is a neutral one like this:
{
"error": {
"status": 503,
"message": "Simulated failure"
}
}So a client can branch on one check: if x-slurry-error is present, Slurry refused the request; otherwise the simulated API answered.
One exception: a simulation with Idempotency-Key handling on (see Idempotency-Key under Rules) answers a bad key with the vendor's error body and says why in x-slurry-error: idempotency_key_invalid and idempotency_key_reused (400), idempotency_in_progress and idempotency_reply_not_stored (409).
Management API codes
| Code | Status | When |
|---|---|---|
invalid_request | 400 | The body or query failed validation. The message names the field. |
bad_request | 400 | The request made sense but cannot be done, for example an invalid CIDR range. |
unsafe_url | 400 | A webhook URL points at a private or internal address. |
unauthorised | 401 | Missing, invalid, revoked or expired account key. |
insufficient_scope | 403 | The key lacks the scope this endpoint needs (simulations:read or simulations:write). |
ip_not_allowed | 403 | The account key is restricted to IP ranges that do not include the caller. |
account_suspended | 403 | The account is suspended pending review. |
forbidden | 403 | Your role in the organisation does not allow this (for example a viewer trying to change a simulation). See Teams and roles. |
member_access_revoked | 403 | The key belongs to someone who has left the organisation, or whose role is now below what the key needs. Create a new key. |
suspended | 403 | The simulation or account is suspended, so this change is refused. |
payment_required | 402 | No active subscription. |
plan_limit | 402 | Creating this would exceed your plan (simulations or concurrent forks). |
seat_limit | 402 | Members plus pending invitations already fill the seats on your plan. |
storage_limit | 402 | Records across simulations, forks and snapshots would exceed your plan. |
no_credit | 402 | Your monthly AI allowance and prepaid credit are used up and no model key is set. |
model_rate_limited | 429 | Too many model calls in the last hour. Try later or use your own model key. |
rate_limited | 429 | Too many management API requests. Honour Retry-After. |
not_found | 404 | No such simulation, snapshot, rule or library entry in your account. |
conflict | 409 | The name or subdomain is taken, or the simulation is in a state that does not allow this yet. |
idempotency_in_progress | 409 | A request with the same Idempotency-Key is still running. Retry shortly. |
idempotency_key_reused | 422 | The Idempotency-Key was already used with a different request: another body or path, another API key, or the same key after its role changed. |
invalid_spec | 422 | The uploaded spec could not be parsed. |
invalid_rule | 422 | A rule or behaviour step does not fit the data model. |
content_blocked | 422 | Uploaded content was refused by review under the Acceptable Use Policy. |
moderation_unavailable | 503 | Content review could not run. The content is held, not published; try again shortly. |
capacity_unavailable | 503 | Hosted model generation is temporarily at capacity. Try later or use your own model key. |
generation_unavailable | 503 | Hosted model generation is switched off for now. Use your own model key. |
internal | 500 | Something failed on our side. Quote the request_id to support. |
Simulation host codes
| Code | Status | When |
|---|---|---|
simulation_not_found | 404 | No simulation lives at this hostname or path. |
invalid_api_key | 401 | Missing or wrong simulation key. |
ip_not_allowed | 403 | The calling address is not on the allow-list. The message shows the address Slurry saw. |
simulation_suspended | 403 | Stopped by abuse monitoring or an administrator. |
fork_expired | 410 | The fork passed its expiry time. |
subscription_inactive | 402 | The owning account has no active plan. |
monthly_quota | 429 | The account used its monthly request allowance. |
rate_limited | 429 | Over a per-minute limit, on a simulation or the management API. Honour Retry-After. |
simulation_paused | 503 | Paused by its owner. |
simulation_not_ready | 503 | Still being analysed or seeded. |
simulation_pending_review | 503 | Waiting for content review before going live. |
no_such_operation | 404 | The method and path are not in this API’s spec. |
malformed_path | 400 | The path could not be decoded. |
body_too_deep | 400 | The request body nests objects or arrays more than 64 levels deep. Nothing was stored. A simulation's MCP server refuses a whole request nested more than 80 levels deep the same way, before any tool runs; a tool call whose body alone passes 64 gets this error as a tool error. On the management API, a POST with an Idempotency-Key whose body nests more than 512 levels deep gets it too, and nothing is stored for the key; so does an action's params or target nested more than 64 levels. A rules explain body nested that deep is refused as invalid_request. |
record_limit | 409 | A create would take the simulation over its plan’s records limit. Not retryable: delete records or upgrade. |
engine_error | 500 | The engine failed while handling the request. |
Playground codes
Returned by POST /v1/playground and by playground simulations, in the envelope above.
| Code | Status | When |
|---|---|---|
unknown_library | 404 | That API is not offered in the playground. GET /v1/playground/libraries lists the ones you can try. |
ip_unknown | 400 | Slurry could not determine the calling IP address, so it cannot lock the playground to it. |
playground_active | 429 | This IP address already has an active playground. Use it until it expires. |
playground_daily_limit | 429 | This IP address has created its three playgrounds for the last 24 hours. |
playground_full | 503 | The playground is at capacity. Honour Retry-After. |
playground_restricted | 403 | The feature (for example webhooks) is not available on playground simulations. |
playground_expired | 410 | The playground passed its two-hour expiry. Create another, or start a trial. |
OAuth and device login codes
The /oauth endpoints follow the OAuth standards, so these come back as {"error": "...", "error_description": "..."}, not in the Slurry envelope. See Connecting.
| Code | Status | When |
|---|---|---|
invalid_request | 400 | A required parameter is missing or malformed. |
invalid_client | 401 | Unknown client_id. |
invalid_client_metadata | 400 | Dynamic client registration refused the metadata. |
invalid_redirect_uri | 400 | A redirect URI is missing or not allowed (https, loopback or a known desktop app scheme). |
unauthorized_client | 400 | The client may not use this grant type. |
invalid_grant | 400 | The code, refresh token or PKCE verifier is wrong, used or expired. Start sign-in again. |
unsupported_grant_type | 400 | The grant type is not supported. |
invalid_scope | 400 | The scope is not one of simulations:read, simulations:write or account_key. |
invalid_target | 400 | The resource indicator is not the Slurry MCP server or API. |
authorization_pending | 400 | Device login: the user has not approved yet. Keep polling. |
slow_down | 400 | Device login: polling too fast. Add 5 seconds to the interval. |
access_denied | 400 | Device login: the user refused. Stop polling. |
expired_token | 400 | Device login: the code expired. Start again. |
server_error | 500 | Something failed on our side. |