
Api Error Handling
This gives you a complete error handling system with standardized response formats, custom error classes, and observability built in. You get a full ERROR_CODES map, middleware for Express and Flask, retry strategies with exponential backoff, circuit breaker patterns, and Sentry integration. The guides cover everything from basic validation errors to production monitoring with error rate metrics. Use it when you're tired of inconsistent error responses across your API or when debugging production issues without proper request tracing. The best part is the field validation approach that returns all errors at once instead of making clients fix them one at a time.
- skills.sh installs
- 513
- GitHub stars
- 379
- last updated
- Aug 21, 2026
Install
$ npx -y skills add aj-geddes/useful-ai-prompts --skill api-error-handling --agent claude-codeInstalls into .claude/skills of the current project.
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:
Sponsors
Details
- Repository
- github.com/aj-geddes/useful-ai-prompts
- Categories
- Backend & APIs, DevOps & CI/CD, AI & Agent Building, Debugging
- First seen
- Jun 3, 2026
More from aj-geddes/useful-ai-prompts
All 258- Interaction Design510
- Technical Debt Assessment509
- Webhook Development509
- Api Gateway Configuration508
- React Native App508
- Rate Limiting Implementation507
- Ssl Certificate Management505
- Stakeholder Communication505
- Database Migration Management504
- Test Automation Framework504
- Cicd Pipeline Setup503
- Form Validation503
- Stress Testing503
- Test Data Generation502
- Application Logging501
- Grafana Dashboard501
- Changelog Maintenance500
- Code Documentation500
- Api Reference Documentation499
- Database Performance Debugging499
- Reactive Programming496
- Api Pagination495
- Container Debugging494
- Nosql Database Design492