# Variable ErrorCode`Const`

ErrorCode: {
VALIDATION_ERROR: "VALIDATION_ERROR";
INVALID_INPUT: "INVALID_INPUT";
MISSING_REQUIRED: "MISSING_REQUIRED";
SCHEMA_ERROR: "SCHEMA_ERROR";
CONFIG_ERROR: "CONFIG_ERROR";
CONFIG_NOT_FOUND: "CONFIG_NOT_FOUND";
CONFIG_INVALID: "CONFIG_INVALID";
MODEL_ERROR: "MODEL_ERROR";
MODEL_UNAVAILABLE: "MODEL_UNAVAILABLE";
MODEL_NOT_FOUND: "MODEL_NOT_FOUND";
MODEL_RATE_LIMITED: "MODEL_RATE_LIMITED";
MODEL_TIMEOUT: "MODEL_TIMEOUT";
AGENT_ERROR: "AGENT_ERROR";
AGENT_NOT_FOUND: "AGENT_NOT_FOUND";
AGENT_EXECUTION_FAILED: "AGENT_EXECUTION_FAILED";
AGENT_MEMORY_FAILURE: "AGENT_MEMORY_FAILURE";
AGENT_REFLECTION_FAILURE: "AGENT_REFLECTION_FAILURE";
AGENT_PLANNING_FAILURE: "AGENT_PLANNING_FAILURE";
AGENT_ACTION_FAILURE: "AGENT_ACTION_FAILURE";
WORKFLOW_ERROR: "WORKFLOW_ERROR";
WORKFLOW_NOT_FOUND: "WORKFLOW_NOT_FOUND";
WORKFLOW_PARSE_ERROR: "WORKFLOW_PARSE_ERROR";
WORKFLOW_EXECUTION_FAILED: "WORKFLOW_EXECUTION_FAILED";
SECURITY_ERROR: "SECURITY_ERROR";
PATH_TRAVERSAL: "PATH_TRAVERSAL";
UNAUTHORIZED: "UNAUTHORIZED";
TIMEOUT_ERROR: "TIMEOUT_ERROR";
RATE_LIMIT_ERROR: "RATE_LIMIT_ERROR";
INTERNAL_ERROR: "INTERNAL_ERROR";
} = ...

Error codes for all Nexus Agents errors.

#### Type Declaration

- ##### `Readonly` VALIDATION_ERROR: "VALIDATION_ERROR"

- ##### `Readonly` INVALID_INPUT: "INVALID_INPUT"

- ##### `Readonly` MISSING_REQUIRED: "MISSING_REQUIRED"

- ##### `Readonly` SCHEMA_ERROR: "SCHEMA_ERROR"

- ##### `Readonly` CONFIG_ERROR: "CONFIG_ERROR"

- ##### `Readonly` CONFIG_NOT_FOUND: "CONFIG_NOT_FOUND"

- ##### `Readonly` CONFIG_INVALID: "CONFIG_INVALID"

- ##### `Readonly` MODEL_ERROR: "MODEL_ERROR"

- ##### `Readonly` MODEL_UNAVAILABLE: "MODEL_UNAVAILABLE"

- ##### `Readonly` MODEL_NOT_FOUND: "MODEL_NOT_FOUND"

  Model is reachable but the requested id no longer exists — typically a 404 from /v1/chat/completions, an Anthropic `model_not_found` error, or a vendor "this model has been deprecated" message. Distinct from MODEL_UNAVAILABLE (transient 502/503 service overload) — this one means the model is gone, retry won't help, route to a different id. See `withModelNotFoundFallback` for the retire-and-retry primitive.

- ##### `Readonly` MODEL_RATE_LIMITED: "MODEL_RATE_LIMITED"

- ##### `Readonly` MODEL_TIMEOUT: "MODEL_TIMEOUT"

- ##### `Readonly` AGENT_ERROR: "AGENT_ERROR"

- ##### `Readonly` AGENT_NOT_FOUND: "AGENT_NOT_FOUND"

- ##### `Readonly` AGENT_EXECUTION_FAILED: "AGENT_EXECUTION_FAILED"

- ##### `Readonly` AGENT_MEMORY_FAILURE: "AGENT_MEMORY_FAILURE"

- ##### `Readonly` AGENT_REFLECTION_FAILURE: "AGENT_REFLECTION_FAILURE"

- ##### `Readonly` AGENT_PLANNING_FAILURE: "AGENT_PLANNING_FAILURE"

- ##### `Readonly` AGENT_ACTION_FAILURE: "AGENT_ACTION_FAILURE"

- ##### `Readonly` WORKFLOW_ERROR: "WORKFLOW_ERROR"

- ##### `Readonly` WORKFLOW_NOT_FOUND: "WORKFLOW_NOT_FOUND"

- ##### `Readonly` WORKFLOW_PARSE_ERROR: "WORKFLOW_PARSE_ERROR"

- ##### `Readonly` WORKFLOW_EXECUTION_FAILED: "WORKFLOW_EXECUTION_FAILED"

- ##### `Readonly` SECURITY_ERROR: "SECURITY_ERROR"

- ##### `Readonly` PATH_TRAVERSAL: "PATH_TRAVERSAL"

- ##### `Readonly` UNAUTHORIZED: "UNAUTHORIZED"

- ##### `Readonly` TIMEOUT_ERROR: "TIMEOUT_ERROR"

- ##### `Readonly` RATE_LIMIT_ERROR: "RATE_LIMIT_ERROR"

- ##### `Readonly` INTERNAL_ERROR: "INTERNAL_ERROR"

- Defined in packages/nexus-agents/src/core/errors.ts:10
- Defined in packages/nexus-agents/src/core/errors.ts:65