DocubixDocs
Dashboard

Errors

HTTP status codes and error response format.

Error format

Errors return JSON with a detail field. Validation errors may return an array of objects.

json
{
  "detail": "Not authenticated"
}
json
{
  "detail": [
    {
      "loc": ["body", "message"],
      "msg": "field required",
      "type": "value_error.missing"
    }
  ]
}

Status codes

CodeMeaningCommon causes
400Bad RequestInvalid JSON, missing fields, validation errors
401UnauthorizedMissing or invalid X-Clerk-User-Id header
403ForbiddenDisabled knowledge base, access denied
404Not FoundKB, document, conversation, or key not found
409ConflictDocument still processing, invalid retry state
422Validation ErrorRequest body failed schema validation
429Rate LimitKB rate limit exceeded (when configured)
500Internal ErrorUnexpected server error