Api Error Handling
Standardized API error handling covering response formats, logging, retries, circuit breakers, and validation.
- CCM score
- 42 of 100
- skills.sh installs
- 515
- GitHub stars
- 396
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers typed error classes, a standard error response envelope, global middleware, and error monitoring for Node.js and Python
- Includes 4 reference guides: error codes and response format, retry strategies with circuit breakers, Sentry-based monitoring, and validation patterns
- Enforces rules such as logging 5xx at ERROR and 4xx at WARN, never leaking stack traces, and retrying only idempotent transient failures
- Designed for teams building resilient APIs that need consistent client-facing errors and request tracing via
requestIdandtraceId
Install
$ npx -y skills add aj-geddes/useful-ai-prompts --skill api-error-handling -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
API Error Handling
Table of Contents
Overview
Build robust error handling systems with standardized error responses, detailed logging, error categorization, and user-friendly error messages. This skill covers the full lifecycle from throwing typed errors through logging, monitoring, and client-facing response formatting.
When to Use
- Handling API errors consistently across endpoints
- Debugging production issues with request tracing
- Implementing error recovery strategies (retry, circuit breaker)
- Monitoring and alerting on error rates
- Providing meaningful, actionable error messages to clients
- Validating request inputs before processing
- Tracking error patterns over time
Quick Start
Minimal standardized error response format:
Details
- Repository
- github.com/aj-geddes/useful-ai-prompts
- Categories
- Backend & APIs, Code Review & Quality
- First seen
- Jun 3, 2026
Questions
What does the api-error-handling skill do?
The api-error-handling skill gives Claude guidance for standardized API error responses, logging, monitoring, retry logic, and validation patterns. It covers error codes, exponential backoff with jitter, and circuit breakers for resilient APIs.
When should I use the api-error-handling skill?
Use the api-error-handling skill when building resilient APIs, debugging production issues, handling HTTP error codes, managing API timeouts, or adding circuit breaker patterns. It also helps design one consistent error shape across every endpoint.
How do I install the api-error-handling skill?
Run npx -y skills add aj-geddes/useful-ai-prompts --skill api-error-handling -y in your project. After that, api-error-handling appears as an available skill for your agent.
Which category does the api-error-handling skill belong to?
The api-error-handling skill is listed in the Backend & APIs category on Claude Marketplaces. Its own guidance focuses on error formats, retry strategies, and validation for server-side APIs.
More from aj-geddes/useful-ai-prompts
All 258- Feature Engineering513
- Interaction Design512
- Technical Debt Assessment512
- Computer Vision511
- React Native App511
- Webhook Development511
- Api Gateway Configuration510
- Stakeholder Communication510
- Rate Limiting Implementation509
- Ssl Certificate Management509
- Form Validation508
- Stress Testing508
- Test Automation Framework508
- Cicd Pipeline Setup506
- Database Migration Management506
- Test Data Generation506
- Statistical Hypothesis Testing505
- Application Logging504
- Changelog Maintenance504
- Grafana Dashboard504
- Model Hyperparameter Tuning504
- Api Reference Documentation503
- Code Documentation503
- Database Performance Debugging501
Similar to Api Error Handling
More Backend & APIserror-handlingaffaan-m/ecc9.5K installsPatterns for typed errors, retries, circuit breakers, and user-facing failure messages across TypeScript, Python, and Go.
error-handling-patternswshobson/agents24.3K installsCross-language error handling guide covering exceptions, Result types, propagation, and graceful degradation for resilient applications.
error-handling-standardizerpatricio0312rev/skills270 installsTyped error classes, central Express-style middleware, and structured logging that keeps stack traces out of client responses.
golang-error-handlingsamber/cc-skills-golang47.1K installsIdiomatic Go error handling covering wrapping, inspection, the single handling rule, and production-grade slog and samber/oops logging.
m13-domain-erroractionbook/rust-skills3.8K installsLayered error-handling guide that sorts errors by audience and recovery path, with Rust examples.
error-trackingaj-geddes/useful-ai-prompts467 installsSentry-based error tracking that captures exceptions, releases, and performance issues in production.