Error codes

Bundata returns machine-readable error codes in API and run error responses. Use them for programmatic handling, logging, and user-facing messages. This page is a reference for common codes and recommended actions.

Authentication and authorization

CodeHTTPDescriptionAction
UNAUTHORIZED401Missing or invalid API key.Check Authorization header and key value. See Authentication.
FORBIDDEN403Key valid but not allowed for this resource or action.Check workspace, scopes, and permissions.
EXPIRED_CREDENTIAL401Credential (e.g. connector) expired.Refresh or re-authorize the connector.

Request validation

CodeHTTPDescriptionAction
INVALID_REQUEST400Malformed or invalid request body or params.Fix JSON, required fields, and types.
INVALID_SCHEMA400Schema validation failed (e.g. unknown field type, invalid structure).Fix schema definition. See Schema field reference.
VALIDATION_ERROR400Field-level validation (e.g. date format, required field missing).Check details for field and reason; fix input or schema.

Resources

CodeHTTPDescriptionAction
NOT_FOUND404Resource (run, collection, schema, connector) not found.Verify ID and path; ensure resource exists in the workspace.
CONFLICT409Conflict (e.g. duplicate idempotency key, version mismatch).Change request or use a new idempotency key.

Rate limits and capacity

CodeHTTPDescriptionAction
RATE_LIMITED429Too many requests.Retry after Retry-After; reduce concurrency. See Rate limits.
QUOTA_EXCEEDED429Usage quota (e.g. pages per month) exceeded.Upgrade plan or wait for quota reset. See Limits and quotas.

Extraction and runs

CodeHTTP / runDescriptionAction
EXTRACTION_FAILED5xx / run failedExtraction step failed (e.g. unsupported file, parse error).Check file type and format; see Supported file types.
UNSUPPORTED_FILE_TYPE400 / runFile type not supported.Use a supported type or skip. See Supported file types.
FILE_TOO_LARGE400Document exceeds size limit.Split or compress; see Limits and quotas.
CONNECTOR_ERROR5xx / runSource or destination connector failed (e.g. auth, network).Check connector config and credentials; see Source and Destination connectors.

Server and transient

CodeHTTPDescriptionAction
INTERNAL_ERROR500Unexpected server error.Retry with backoff; if persistent, contact Support.
SERVICE_UNAVAILABLE503Temporary unavailability.Retry with backoff. Check Status.

Error response shape

Responses typically include:

  • code — One of the codes above (or a product-specific extension).
  • message — Human-readable description.
  • details — Optional object with field-specific or context-specific info (e.g. field, limit, run_id).

Use code for branching in code; use message and details for logs and user-facing text.

Next steps