Skip to main content

Error Handling

Error Response Format

{
"error": "Error Type",
"message": "Human-readable description of what went wrong.",
"statusCode": 400
}

Validation errors may return an array for message:

{
"error": "Validation Error",
"message": [{ "path": ["name"], "message": "Required" }],
"statusCode": 400
}

Common HTTP Error Codes

CodeMeaningCommon Causes
400Bad RequestMissing required fields, invalid types, reserved model names, no fields to update
401UnauthorizedMissing, expired, or invalid JWT access token
403ForbiddenNon-admin accessing /admin/api/*, file access without ownership or valid signed URL
404Not FoundUnknown table name, record ID not found, agent not found, file not found
409ConflictEmail already registered, model name already exists
413Payload Too LargeFile exceeds per-request size limit or per-user storage quota
500Internal Server ErrorUnexpected server error, LLM provider failure