Skip to content
aj-geddes avatar

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
View on GitHub

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 requestId and traceId

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill api-error-handling -y

Installs 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

Similar to Api Error Handling

More Backend & APIs