API Error Envelope Designer

•
2
•

Standardizes API error responses across HTTP, GraphQL, and gRPC to ensure consistent, machine-actionable client handling.

This skill provides a systematic framework for designing robust API error envelopes, moving away from inconsistent 'stringly-typed' errors toward structured standards like RFC 7807 (problem+json), GraphQL union types, and gRPC status codes. It guides developers through creating centralized error registries, defining clear retry contracts with idempotency logic, and implementing partial failure patterns for batch operations, ultimately improving client-side reliability and security by preventing internal data leaks.

Características Principales

01Security-focused data leak prevention rules
022 GitHub stars
03Transport-specific error mapping (HTTP, GraphQL, gRPC)
04Centralized error code registry management
05Structured retry and idempotency contract definition
06Partial failure patterns for batch operations

Casos de Uso

01Refactoring legacy APIs where clients currently parse error strings for logic
02Implementing RFC 7807 problem details in a RESTful web service
03Defining a consistent error format for a new microservice architecture