n8n-error-handling-official
Skill by n8n-io
Teaches an AI assistant how to add error handling to n8n workflows so failures are loud and structured. It is for builders of webhook APIs, scheduled jobs and other unattended n8n workflows.
Install n8n-error-handling-official
Built from the published package, never by AI.
git clone --depth 1 https://github.com/n8n-io/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/n8n-error-handling-official ~/.claude/skills/n8n-error-handling-officialRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install n8n-error-handling-official in Claude Code
git clone --depth 1 https://github.com/n8n-io/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/skills/n8n-error-handling-official ~/.gemini/antigravity-cli/skills/n8n-error-handling-officialAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install n8n-error-handling-official in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill covers error handling for n8n workflows. By default, an n8n node that errors halts the workflow, and the caller gets nothing useful. The skill sets out rules for webhook APIs: wire every fallible node's error output to a Respond to Webhook node, and map each error's status code to its cause, with 4xx for caller mistakes and 5xx for server problems. It also covers workflow-level error workflows, retry settings for transient failures, and structured error response bodies.
The skill includes reference files for API workflows, error workflows, response shapes and per-node error outputs. It also includes a Set-based schema validator pattern for input checks. It is aimed at people building webhook-triggered, scheduled or queue-driven n8n workflows where other people or systems depend on the output.
Written from the project's SKILL.md and checked against it.
What it can do
- Per-node error outputsSets each fallible node to continueErrorOutput and wires its output(1) to an error handler.
- Status code mappingMaps the cause of a failure to a 4xx or 5xx status code and a structured error code.
- Workflow error workflowsSets a workflow-level error workflow that catches timeouts, crashes and errors in unwired nodes.
- Retry on transient failuresConfigures retryOnFail with maxTries and waitBetweenTries on nodes that call network services.
- Schema validator patternLifts a Set-based IIFE validator into a webhook endpoint for input checks before the main logic runs.
- Structured error bodiesUses response bodies with an error identifier and a human-readable message instead of generic text.
- Anti-pattern checklistLists common error handling mistakes, such as returning 200 on errors or using one catch-all 500.
What you need
- An n8n instance
- n8n 2.29.0 or later to set the error workflow via update_workflow
Try asking
- Add error handling to this webhook workflow so failures return a 5xx response.
- Set up an error workflow for my scheduled n8n workflow.
- Add retryOnFail to the HTTP Request nodes in this workflow.
Good to know
- Set the error workflow only if the target is a published workflow with an active Error Trigger.
- The engine caps maxTries at 5 and waitBetweenTries at 5000ms.
- Retries apply to any error, with no filter by status code.
- The source is guidance and reference notes for an assistant, not a runnable tool.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/n8n-error-handling-official/SKILL.md, skills/n8n-error-handling-official/references/examples/validation-subworkflow-usage.ts, skills/n8n-error-handling-official/references/examples/validation-subworkflow.ts. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md12 KB -
references/API_WORKFLOWS.md15 KB -
references/ERROR_WORKFLOWS.md8 KB -
references/NODE_ERROR_OUTPUTS.md4 KB -
references/RESPONSE_SHAPES.md8 KB
Show all 7 files
-
references/examples/validation-subworkflow-usage.ts8 KB -
references/examples/validation-subworkflow.ts7 KB
Alternatives to n8n-error-handling-official
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
n8n-error-handling-official: common questions
Why does my n8n webhook workflow return nothing when a node fails?
By default, an n8n node error halts the workflow, so the caller gets no useful response. The skill recommends wiring each fallible node's error output to a Respond to Webhook node.
Which status code should an n8n error response use?
The source says caller mistakes should return 4xx and server or upstream problems should return 5xx. Returning 200 on an error path causes silent failure.
Does n8n retry failed nodes automatically?
The skill says to set retryOnFail on network-calling nodes. The engine retries on any error, with maxTries capped at 5 and waitBetweenTries capped at 5000ms.
How do I install n8n-error-handling-official?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is n8n-error-handling-official free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is n8n-error-handling-official safe to use?
It scores 84 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to n8n-error-handling-official?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
