Error Codes
| Code | HTTP Status | Description |
|---|
UNAUTHORIZED | 401 | Missing or invalid auth token |
FORBIDDEN | 403 | Insufficient permissions or domain not allowed |
NOT_FOUND | 404 | Resource does not exist |
VALIDATION_ERROR | 400 | Request body failed schema validation |
CONFLICT | 409 | Resource state conflict |
RATE_LIMIT_EXCEEDED | 429 | Too many requests |
INTERNAL_ERROR | 500 | Unexpected server error |
SERVICE_UNAVAILABLE | 503 | Platform maintenance or outage |
HTTP Status Codes
| Status | Meaning |
|---|
| 200 | Success with body |
| 201 | Created — new resource returned |
| 204 | Success with no body (DELETE) |
| 400 | Bad request format |
| 401 | Authentication required |
| 403 | Forbidden |
| 404 | Not found |
| 409 | Conflict |
| 422 | Unprocessable entity |
| 429 | Rate limited |
| 500 | Server error |
| 503 | Service unavailable |
Errors
Overview
All error responses from the Asiyst API return a consistent JSON schema with machine-readable error codes.
Error Response Schema
{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters",
"details": [
{ "field": "domain", "issue": "Must be a valid HTTPS URL." }
]
}
}
Common Error Codes
| Code | HTTP Status | Description |
|---|
UNAUTHORIZED | 401 | Missing or invalid Bearer token |
FORBIDDEN | 403 | Insufficient permissions or domain not allowed |
NOT_FOUND | 404 | Project, avatar, or document does not exist |
RATE_LIMIT_EXCEEDED | 429 | Exceeded requests per minute quota |
INTERNAL_ERROR | 500 | Transient cloud infrastructure error |
Status Codes
Knowledge Source Status
| Status | Description |
|---|
pending | Queued for processing |
crawling | Fetching content from source |
indexing | Embedding and storing chunks |
indexed | Ready for retrieval |
error | Processing failed |
stale | Indexed but source has changed since last sync |
Deployment Status
| Status | Description |
|---|
pending | Deployment created but not started |
building | Bundling configuration and knowledge |
validating | Running pre-deploy checks |
deployed | Successfully deployed to target environment |
published | Promoted to production |
failed | Deployment failed |
rolled_back | Rolled back to previous deployment |
Avatar Status
| Status | Description |
|---|
draft | Not yet published |
published | Live and available for use |
deprecated | Older version superseded by a newer publish |