> ## Documentation Index
> Fetch the complete documentation index at: https://enterprise-docs.dify.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Error Types

Each node type throws specific error classes that help you understand what went wrong and how to fix it.

## Node-specific errors

> [tab] Code
>
> `CodeNodeError`
> \[!NOTE] Your Python or JavaScript code threw an exception during execution
>
> ![Code Error](https://assets-docs.dify.ai/2024/12/c86b11af7f92368180ea1bac38d77083.png)
>
> `OutputValidationError`
> \[!NOTE] The data type your code returned doesn't match the output variable type you configured
>
> `DepthLimitError`
> \[!NOTE] Your code created nested data structures deeper than 5 levels
>
> `CodeExecutionError`
> \[!NOTE] The sandbox service couldn't execute your code - usually means the service is down
>
> ![CodeExecutionError](https://assets-docs.dify.ai/2024/12/ab8cae01a590b037017dfe9ea4dbbb8b.png)

> [tab] LLM
>
> `VariableNotFoundError`
> \[!NOTE] Your prompt template references a variable that doesn't exist in the workflow context
>
> ![VariableNotFoundError](https://assets-docs.dify.ai/2024/12/f20c5fbde345144de6183374ab277662.png)
>
> `InvalidContextStructureError`
> \[!NOTE] You passed an array or object to the context field, which only accepts strings
>
> `NoPromptFoundError`
> \[!NOTE] The prompt field is completely empty
>
> `ModelNotExistError`
> \[!NOTE] No model is selected in the LLM node configuration
>
> `LLMModeRequiredError`
> \[!NOTE] The selected model doesn't have valid API credentials configured
>
> `InvalidVariableTypeError`
> \[!NOTE] Your prompt template isn't valid Jinja2 syntax or plain text format
>
> ![InvalidVariableTypeError](https://assets-docs.dify.ai/2024/12/9882f7a5ee544508ba11b51fb469a911.png)

> [tab] HTTP Request
>
> `AuthorizationConfigError`
> \[!NOTE] Missing or invalid authentication configuration for the API endpoint
>
> `InvalidHttpMethodError`
> \[!NOTE] HTTP method must be GET, HEAD, POST, PUT, PATCH, or DELETE
>
> `ResponseSizeError`
> \[!NOTE] API response exceeded the 10MB size limit
>
> `FileFetchError`
> \[!NOTE] Couldn't retrieve a file variable referenced in the request
>
> `InvalidURLError`
> \[!NOTE] The URL format is malformed or unreachable

> [tab] Tool
>
> `ToolParameterError`
> \[!NOTE] Parameters passed to the tool don't match its expected schema
>
> `ToolFileError`
> \[!NOTE] The tool couldn't access required files
>
> `ToolInvokeError`
> \[!NOTE] The external tool API returned an error during execution
>
> ![](https://assets-docs.dify.ai/2024/12/84af0831b7cb23e64159dfbba80e9b28.jpg)
>
> `ToolProviderNotFoundError`
> \[!NOTE] The tool provider isn't installed or configured properly

## System-level errors

`InvokeConnectionError`
\[!NOTE] Network connection failed to the external service

`InvokeServerUnavailableError`
\[!NOTE] External service returned a 503 status or is temporarily down

`InvokeRateLimitError`
\[!NOTE] You've hit rate limits on the API or model provider

`QuotaExceededError`
\[!NOTE] Your usage quota has been exceeded for this service


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.