Skip to content

Errors

Every 4xx and 5xx response is an RFC 9457 problem document with media type application/problem+json. Branch on code. type is a link to the section of this page that documents it.

{
  "type": "https://bellatorsi.com/problems/tier-required",
  "title": "Tier required",
  "status": 402,
  "detail": "This endpoint requires starter tier or higher. Current tier is free. Sign up at https://bellatorsi.com/pricing",
  "code": "TIER_REQUIRED",
  "instance": "/api/v1/forensics/delay-analysis",
  "request_id": "2003827e-2043-463d-9b22-10fca490bb78",
  "signup_url": "https://bellatorsi.com/pricing",
  "required_tier": "starter",
  "current_tier": "free"
}
Member Meaning
type Documentation URL for code
title Short summary of the problem type
status HTTP status
detail What went wrong in this request, always a string
code Stable machine code, UPPER_SNAKE
instance Request path
request_id Same as the X-Request-ID response header. Quote it to support.

Other members are route-specific: required_tier, async_endpoint, errors (field-level validation errors), cycle (task IDs around a predecessor loop), suggestion (imports), details (MCP).

A 5xx body never contains server details. Its detail is a fixed message; request_id identifies the logged trace.

Handling

  • 400, 404, 409, 413, 415, 422: fix the request. Retrying the same body returns the same error.
  • 401: send a valid key in x-api-key.
  • 402, 403: the key's tier does not allow the call. The body names the tier.
  • 429: wait. Retry-After (burst) or X-RateLimit-Reset (monthly quota) says when.
  • 5xx: retry with exponential backoff. Contact support with request_id if it persists.

The Python SDK raises ApiException; json.loads(error.body) is the problem document. The Node SDK rejects with an axios error; error.response.data is the problem document. Over MCP, a tool error is a result with isError: true whose text is the problem document.

Codes

Code HTTP Title
INVALID_REQUEST 400 Invalid request
UNAUTHORIZED 401 Missing or invalid API key
FORBIDDEN 403 Forbidden
NOT_FOUND 404 Not found
METHOD_NOT_ALLOWED 405 Method not allowed
CONFLICT 409 Conflict
PAYLOAD_TOO_LARGE 413 Payload too large
UNSUPPORTED_MEDIA_TYPE 415 Unsupported media type
VALIDATION_ERROR 422 Request validation failed
RATE_LIMITED 429 Too many requests
INTERNAL_ERROR 500 Internal error
BAD_GATEWAY 502 Upstream error
SERVICE_UNAVAILABLE 503 Service unavailable
TIER_REQUIRED 402 Tier required
TIER_LIMIT_EXCEEDED 402 Tier limit exceeded
PAYMENT_DECLINED 402 Payment declined
QUOTA_EXCEEDED 429 Monthly call quota exceeded
CIRCULAR_DEPENDENCY 400 Circular dependency
SCHEDULE_TOO_LARGE_FOR_SYNC 413 Schedule too large for a synchronous call
REFERENCE_NOT_SCHEDULABLE 422 Reference schedule will not schedule
SCHEDULE_RISK_INVALID 422 Schedule risk request is invalid
TOOL_NOT_FOUND 404 MCP tool not found
TOOL_EXECUTION_FAILED varies MCP tool failed
ASYNC_NOT_AVAILABLE_FOR_TIER 403 Async jobs not available on this tier
USAGE_LIMIT_EXCEEDED 429 Usage limit exceeded
RATE_LIMIT_EXCEEDED 429 Rate limit exceeded
INVALID_OR_EXPIRED_KEY 401 Key is invalid or expired
GENERATION_LIMIT_EXCEEDED 429 Free key generation limit reached
AGGREGATE_LIMIT_EXCEEDED 429 Daily free key limit reached
MISSING_API_KEY 401 API key not set
UPSTREAM_UNAVAILABLE 503 Upstream unavailable
INVALID_UPSTREAM varies Upstream returned an invalid response
FILE_TOO_LARGE 413 File too large
BINARY_MPP_NOT_SUPPORTED 415 Binary .mpp files are not supported
INVALID_XML 422 File is not valid XML
NO_TASKS 422 File contains no tasks
MULTI_PROJECT_REQUIRES_PROJECT_ID 422 File has several projects; set project_id
PROJECT_NOT_FOUND 422 Project not found in file
DUPLICATE_TASK_ID 422 Duplicate task ID in file
INSUFFICIENT_TASKS 422 Not enough work tasks
DUPLICATE_SNAPSHOT_DATE 422 Duplicate snapshot date
NEGATIVE_DURATION 422 Negative task duration in file
PARSE_ERROR 422 File could not be parsed
FIXTURE_TASKS_CONFLICT 422 Send a fixture or tasks, not both
UNKNOWN_FIXTURE 422 Unknown sample schedule
INTENT_VALIDATION_FAILED 400 MCP tool arguments failed validation
TASKS_REQUIRED 422 Tasks are required
SCENARIOS_REQUIRED 422 Scenarios are required
DUPLICATE_SCENARIO_ID 422 Duplicate scenario_id
TOO_MANY_EDITS 422 Too many edits
UNKNOWN_EDIT 422 Edit is not valid
UNKNOWN_TASK 422 Task not found

invalid-request

INVALID_REQUEST · HTTP 400 · Invalid request

The request was rejected before analysis. detail says why. Fix the request; retrying the same body returns the same error.

unauthorized

UNAUTHORIZED · HTTP 401 · Missing or invalid API key

The x-api-key header is missing, or the key is unknown or revoked. Send a valid key. An API key sent as Authorization: Bearer is rejected.

forbidden

FORBIDDEN · HTTP 403 · Forbidden

The key is valid but may not use this resource.

not-found

NOT_FOUND · HTTP 404 · Not found

No route, job, or resource has this path or ID. Jobs expire; check the job ID and the path.

method-not-allowed

METHOD_NOT_ALLOWED · HTTP 405 · Method not allowed

The path exists but not for this HTTP method. POST /mcp is the only method on the MCP transport.

conflict

CONFLICT · HTTP 409 · Conflict

The resource is in a state that does not allow this change, for example cancelling a job that already finished.

payload-too-large

PAYLOAD_TOO_LARGE · HTTP 413 · Payload too large

The request body is larger than the route accepts.

unsupported-media-type

UNSUPPORTED_MEDIA_TYPE · HTTP 415 · Unsupported media type

The body is not in a format the route accepts.

validation-error

VALIDATION_ERROR · HTTP 422 · Request validation failed

The body does not match the request schema. errors lists each field: loc is the path, msg the reason. detail repeats the first one.

rate-limited

RATE_LIMITED · HTTP 429 · Too many requests

Too many requests in a short window. Wait for Retry-After seconds, then retry.

internal-error

INTERNAL_ERROR · HTTP 500 · Internal error

An unexpected server error. The body never contains server details. Retry with exponential backoff; if it persists, contact support with request_id.

bad-gateway

BAD_GATEWAY · HTTP 502 · Upstream error

An upstream service returned an invalid response. Retry with backoff.

service-unavailable

SERVICE_UNAVAILABLE · HTTP 503 · Service unavailable

A required service (queue, key store) is unavailable. Retry with backoff.

tier-required

TIER_REQUIRED · HTTP 402 · Tier required

The route needs a higher tier than the key has. required_tier, current_tier, and signup_url are in the body. Forensics routes need Starter; simulation needs Professional.

tier-limit-exceeded

TIER_LIMIT_EXCEEDED · HTTP 402 · Tier limit exceeded

The request exceeds the key's per-request task limit or payload size. upgrade_url is in the body. Split the schedule, use the async route, or upgrade.

payment-declined

PAYMENT_DECLINED · HTTP 402 · Payment declined

An upgrade through POST /api/v1/billing/plan-change was declined by the card issuer. The plan did not change and nothing was charged. Update the payment method in the billing portal and try again.

quota-exceeded

QUOTA_EXCEEDED · HTTP 429 · Monthly call quota exceeded

The account has used its monthly call quota. X-Quota-Used, X-Quota-Limit, and X-RateLimit-Reset headers say how much and when it resets.

circular-dependency

CIRCULAR_DEPENDENCY · HTTP 400 · Circular dependency

The predecessor links form a loop, so there is no critical path. cycle lists the task IDs around the loop, first ID repeated at the end. Remove one link in the loop. POST /api/v1/analysis/validate reports the same loop as a finding instead of an error.

schedule-too-large-for-sync

SCHEDULE_TOO_LARGE_FOR_SYNC · HTTP 413 · Schedule too large for a synchronous call

The schedule is over the synchronous task limit. Submit the same body to async_endpoint and poll the job.

reference-not-schedulable

REFERENCE_NOT_SCHEDULABLE · HTTP 422 · Reference schedule will not schedule

What-if: the unedited schedule will not schedule, so there is nothing to compare against. detail names the loop when there is one. Fix the reference schedule.

schedule-risk-invalid

SCHEDULE_RISK_INVALID · HTTP 422 · Schedule risk request is invalid

Monte Carlo: the risk inputs break a rule of the request (distribution bounds, correlation, register entries, or a loop). detail names the activity and the rule.

tool-not-found

TOOL_NOT_FOUND · HTTP 404 · MCP tool not found

MCP: no tool has this name. Tool names are the operationIds listed by GET /mcp/tools.

tool-execution-failed

TOOL_EXECUTION_FAILED · HTTP varies · MCP tool failed

MCP: the wrapped REST endpoint returned an error. The status is the endpoint's; details carries its body.

async-not-available-for-tier

ASYNC_NOT_AVAILABLE_FOR_TIER · HTTP 403 · Async jobs not available on this tier

Async jobs need Starter or higher. Upgrade, or send a schedule within the synchronous limit.

usage-limit-exceeded

USAGE_LIMIT_EXCEEDED · HTTP 429 · Usage limit exceeded

A free playground or agent key has used all of the calls it allows. Mint a new key or use an account key.

rate-limit-exceeded

RATE_LIMIT_EXCEEDED · HTTP 429 · Rate limit exceeded

Too many requests in a minute (limit burst), or a playground or agent key's monthly cap (limit monthly). Wait Retry-After seconds. A refused request does not count toward your monthly calls; monthly_remaining is what is left.

invalid-or-expired-key

INVALID_OR_EXPIRED_KEY · HTTP 401 · Key is invalid or expired

A free playground or agent key is unknown or past its 24-hour life. Mint a new one.

generation-limit-exceeded

GENERATION_LIMIT_EXCEEDED · HTTP 429 · Free key generation limit reached

This IP has minted the maximum number of free keys today. Reuse an existing key or create an account.

aggregate-limit-exceeded

AGGREGATE_LIMIT_EXCEEDED · HTTP 429 · Daily free key limit reached

The service-wide daily limit for free keys is reached. Try tomorrow or use an account key.

missing-api-key

MISSING_API_KEY · HTTP 401 · API key not set

Local stdio MCP server only: neither BSI_API_KEY nor BELLATOR_API_KEY is set in its environment.

upstream-unavailable

UPSTREAM_UNAVAILABLE · HTTP 503 · Upstream unavailable

Local stdio MCP server only: it could not reach BSI_BASE_URL.

invalid-upstream

INVALID_UPSTREAM · HTTP varies · Upstream returned an invalid response

Local stdio MCP server only: the API answered with something that is not JSON. Check BSI_BASE_URL.

file-too-large

FILE_TOO_LARGE · HTTP 413 · File too large

The import file is over the limit: 50 MB for MS Project XML, 100 MB for XER.

binary-mpp-not-supported

BINARY_MPP_NOT_SUPPORTED · HTTP 415 · Binary .mpp files are not supported

Binary .mpp files are not accepted. In MS Project, use File, Save As, XML, and send the XML text.

invalid-xml

INVALID_XML · HTTP 422 · File is not valid XML

The MS Project file is not well-formed XML. Re-export it from MS Project.

no-tasks

NO_TASKS · HTTP 422 · File contains no tasks

The file parsed but contains no tasks for the selected project (or, for XER, no PROJECT table).

multi-project-requires-project-id

MULTI_PROJECT_REQUIRES_PROJECT_ID · HTTP 422 · File has several projects; set project_id

The XER file holds several projects. detail lists their IDs; set options.project_id to one of them.

project-not-found

PROJECT_NOT_FOUND · HTTP 422 · Project not found in file

options.project_id is not a project in the XER file. detail lists the IDs that are.

duplicate-task-id

DUPLICATE_TASK_ID · HTTP 422 · Duplicate task ID in file

Two tasks share an ID: in an imported file, or in one version of a health score request. For the health score, duplicate_ids lists every repeated ID and snapshot_date names the history version, if any.

insufficient-tasks

INSUFFICIENT_TASKS · HTTP 422 · Not enough work tasks

Health score: fewer than two work tasks, so there is no network to score. work_task_count gives the count, and snapshot_date names the history version, if any. Completed tasks count; summaries, LOE and milestones do not.

duplicate-snapshot-date

DUPLICATE_SNAPSHOT_DATE · HTTP 422 · Duplicate snapshot date

Health score: two schedule_history versions share a snapshot_date. snapshot_dates lists them. Give each version its own date.

negative-duration

NEGATIVE_DURATION · HTTP 422 · Negative task duration in file

A task in the imported file has a negative duration.

parse-error

PARSE_ERROR · HTTP 422 · File could not be parsed

The file could not be parsed for another reason. detail has the parser message.

fixture-tasks-conflict

FIXTURE_TASKS_CONFLICT · HTTP 422 · Send a fixture or tasks, not both

Playground: send schedule_fixture or tasks, not both.

unknown-fixture

UNKNOWN_FIXTURE · HTTP 422 · Unknown sample schedule

Playground: no sample schedule has this name. GET /api/v1/sandbox/fixtures lists them.

intent-validation-failed

INTENT_VALIDATION_FAILED · HTTP 400 · MCP tool arguments failed validation

MCP: the tool arguments failed validation. details.validation_errors and details.correction_hints say what to change.

tasks-required

TASKS_REQUIRED · HTTP 422 · Tasks are required

What-if: tasks is missing or empty.

scenarios-required

SCENARIOS_REQUIRED · HTTP 422 · Scenarios are required

What-if: scenarios is missing, empty, or has more than 10 entries.

duplicate-scenario-id

DUPLICATE_SCENARIO_ID · HTTP 422 · Duplicate scenario_id

What-if: two scenarios share a scenario_id.

too-many-edits

TOO_MANY_EDITS · HTTP 422 · Too many edits

What-if: a scenario has more than 100 edits.

unknown-edit

UNKNOWN_EDIT · HTTP 422 · Edit is not valid

What-if: an edit has an unknown op, a bad relationship or constraint type, or is missing a field its op needs. detail names the scenario and edit.

unknown-task

UNKNOWN_TASK · HTTP 422 · Task not found

What-if: an edit names a task ID that is not in the schedule at that step.

Was this page helpful?

Your feedback helps us improve docs, reference pages, and Playground flows.

Topic: Errors · Page: /docs/errors

TermsPrivacyContact

Schedule analysis guidance. Not legal advice. You remain responsible for contract and agency compliance.