ClouisleClouisle

Statuses & Errors Reference

Look up resource statuses, run statuses, and error code families

The Clouisle API uses a unified response structure for both success and failure:

{"code": 0, "data": {}, "msg": "success"}

Paginated data lives in data.items and includes total, page, page_size.

Common Resource Statuses

ResourceStatuses
Agent/Workflowdraft, published
Knowledge Baseactive, processing, error, archived
Documentpending, processing, completed, error
Workflow runpending, running, success, failed, cancelled, timeout
Node executionpending, running, success, failed, cancelled, timeout, skipped
API Keyactive, inactive, expired

Error Code Families

RangeMeaning
1000-1999General validation and server errors
2000-2999Authentication, Tokens, and account status
3000-3999Permission, team membership, and administrator requirements
4000-4999User, role, team, and other resources not found
5000-5499Registration, security captcha, TOTP, and rate limits
6000-6099Knowledge Base, documents, and chunks
6100-6199Models, authorizations, quotas, and capabilities
6200-6299Agents, conversations, and messages
6300-6399SSO configuration, authentication, and sessions

Recovery Principles

401/2000-2002: refresh the login or replace the API Key; 403/3000: check roles, teams, and resource scopes; 4000/6000: confirm IDs and resource statuses; 5400 or provider quota errors: back off and retry; document/workflow failures: first check resource-level error details, fix the configuration, then reprocess or rerun.

API error response
API error response

How is this guide?

On this page