Errors

View as MarkdownOpen in Claude

Overview of errors you might encounter

Status CodeMeaningAction
200SuccessRequest completed successfully
400Bad RequestCheck request parameters
422Unprocessable EntityCheck for invalid parameter combinations
401UnauthorizedVerify API key is valid
403ForbiddenCheck API key scopes/permissions
404Not FoundAgent/resource doesn’t exist
429Too Many RequestsImplement backoff and retry
500Internal Server ErrorContact support if persistent

In-depth

HTTPCodeWhen it happens
401unauthorizedThis can happen for a missing API key: {"detail": "API key is required"}, an invalid/expired API key: {"detail": "Invalid or expired API key"} or for other auth parsing errors: {"detail": "<error message>"}
403forbiddenAPI key lacks scope for the path (example: /v1/contents): {"detail": "Missing required scopes"}
404agent_not_found or agent_not_supported_yetThe agent ID does not exist (or was deleted), or the agent uses an unsupported model/feature
422invalid_requestInvalid parameter combination. For example, passing both include_domains and exclude_domains in the same request: {"error": "invalid request parameter(s)"}
500Internal Server Error (auth/authorization middleware)This can happen in the case of authentication failure: {"detail": "Internal authentication error"} or authorization failure: {"detail": "Internal authorization error"}