Reference data

Error index

Every code the package and the platform can answer with, grouped by what they are about. All of them arrive as an IaGenifyError with a status and a code.

one shapegrouped by subjectcodes are stable
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

import { IaGenifyError, NotEnoughCredits, Unauthorized } from "iagenify";

try {
  await api.models.turn({ model, messages });
} catch (err) {
  if (err instanceof NotEnoughCredits) { /* 402, never retried */ }
  else if (err instanceof IaGenifyError) console.error(err.status, err.code, err.message);
}
from iagenify import IaGenifyError, NotEnoughCredits, Unauthorized

try:
    api.models.turn(model=model, messages=messages)
except NotEnoughCredits:
    pass  # 402, never retried
except IaGenifyError as error:
    print(error.status, error.code, error)

Match on code, never on the message: codes are the contract, messages are written for a person and are translated, shortened and improved.

Credits

CodeStatusMeans
not_enough_credits402The balance will not cover it. Thrown as NotEnoughCredits, and never retried.
insufficient_credits402The same, for a cloud add-on purchase. The message names the price and the balance.

Creating and running an agent

CodeStatusMeans
machine_required400No machine, or one that is not a computer, a phone or a cloud workspace.
files_required400A phone or cloud workspace without the six file operations. The message names what is missing.
model_required400No model, and no session to take one from.
invalid_mode400A mode outside the four.
unknown_tool400A tool name the engine does not know.
invalid_context400contextTokens below 10 000, or not whole.
invalid_shell400A shell with no run function.
invalid_custom_tool400No description, no run, a reserved name, or a bad category.
invalid_media400A media key that is not one of the four.
invalid_agent400An agent name that is not in the library.
invalid_session_id400Not a session identifier.
workspace_not_allowed400A workspace other than the package's own folder.
inputs_required400run() with neither a message nor inputs.
context_too_large400The conversation will not fit. Refused before any debit.

Sessions and checkpoints

CodeStatusMeans
session_required400The call needs memory: true.
agent_running409It is answering. stop() first.
checkpoints_disabled400checkpoints: false.
invalid_checkpoint400Not a whole number of at least 1.
checkpoint_not_found404No such message. The message lists what is available.
checkpoint_compacted404That message was summarised away.

Model turns

CodeStatusMeans
turn_failed502The provider refused the turn. Its message is carried, redacted.
turn_incomplete502The stream ended without a result.
stream_failed502The stream broke. Retried once.

Files, locally and on the account

CodeStatusMeans
local_files_require_node400The runtime has no filesystem.
storage_not_on_this_machine409That storage belongs to another computer.
invalid_path400Absolute, outside the workspace, or the root.
path_not_found404Nothing there.
path_exists409The destination is taken.
not_a_file · not_a_folder400The path is the other kind.
missing_content · invalid_content400Nothing to write, or a type that cannot be written.
file_not_found · file_missing_on_disk404No such file on the account, or the record without the bytes.

Storages

CodeStatusMeans
storage_not_found404No such storage on this account.
storage_not_local400Not a computer: use run().
storage_is_phone400Its files are in that phone's browser.
storage_is_local400A computer keeps no bytes on the account.
invalid_service400Not nosql, sql or object.
cloud_storage_limit403The plan's count for that service is used.
quota_exceeded403The write would pass a ceiling.
query_timeout408A statement ran too long.
invalid_key · object_not_found400 · 404An unusable key, or nothing at it.
embedding_unavailable503Semantic search refuses rather than answering on a fallback.

Cloud add-ons

CodeStatusMeans
invalid_addon400Not database or object.
invalid_gb400Not a whole number of at least 1, or past the 100 GB limit.

Search, fetch, convert

CodeStatusMeans
query_required · url_required400A required field is missing.
url_refusee · invalid_url400The address is refused by the guard, or unusable.
fetch_failed502The page could not be opened. The credit is given back.
unsupported_conversion400The pair is not in the matrix. The message names the possible targets.
missing_formats · missing_source400No formats, or no source.
conversion_failed502The converter refused the bytes. The credit is given back.

MCP

CodeStatusMeans
url_not_https · url_blocked400Plain http, or an address that is not public.
mcp_token_malformed400The token contains a space.
mcp_token_required · mcp_unauthorized401A token is wanted, or was refused.
mcp_redirect502A redirect. They are never followed.
mcp_protocol_unsupported502No revision in common.
mcp_unreachable · mcp_timeout502 · 504No answer in time.
mcp_error · mcp_http_error · mcp_bad_response502A protocol error, an HTTP refusal, or an unreadable answer.

Workflows

CodeStatusMeans
invalid_workflow400The definition is refused. The message names the step and the problem.
run_not_waiting400The run is not stopped at a human step.
run_not_retryable400It is still going, or a step before the chosen one did not succeed.
step_not_found · step_not_executable400No such step, or a human step has nothing to execute.
timeout408wait() gave up. The run keeps going.

Domains and mail

CodeStatusMeans
domain_taken409Already attached, on some account.
domain_not_attached409We only write in a zone we hold.
mail_would_replace_mx409Live mail is here. details.current says where it goes.
mail_not_enabled403The host has no mail records yet.
mail_not_in_plan403The plan has no mail service.
address_taken · address_reserved409 · 400Taken as a mailbox or an alias, or a reserved name.
dmarc_step_too_big400A jump straight to the strictest policy.
dmarc_not_enforced · public_url_missing400The two gates a logo has to pass.

Hosting

CodeStatusMeans
invalid_kind · invalid_slug400No such kind, or an unusable or reserved slug.
slug_taken409Somebody has that address.
hosting_limit · hosting_not_in_plan403The plan's count is used, or it has no hosting.
hosting_kind_unavailable501That kind cannot serve.
nothing_to_deploy400No files, no code, or a file with no path.
deploy_too_large413Past a bound. The message names the file.

Skills and subagents

CodeStatusMeans
invalid_name400Not lowercase letters, digits and dashes.
not_found404In neither source.
item_on_computer409It exists only on this computer. The message names the folder.
not_a_skill400Only skills have files.