API Error Contract Designer

•
2
•

Designs standardized API error code systems and response contracts to ensure consistent error handling across backend services.

This skill acts as a senior engineer to help you establish a robust, RFC 7807-compliant error handling architecture. It analyzes your existing codebase to identify inconsistent error patterns, then defines a unified error schema that includes machine-readable codes, localized messages, and trace IDs. By mapping business logic failures to the correct HTTP status codes and providing clear client-side handling guides, it improves the developer experience for both frontend and backend teams while ensuring better observability and debugging in production.

主な機能

01Designs hierarchical error classification systems based on categories like Validation, Auth, and Business
022 GitHub stars
03Generates detailed migration roadmaps and client-side error handling guides
04Defines clear mapping rules for confusing status codes like 400 vs 422 and 401 vs 403
05Analyzes existing codebases to identify inconsistent error patterns and HTTP status code usage
06Provides RFC 7807 (Problem Details for HTTP APIs) compliant response schemas

ユースケース

01Standardizing error responses in a legacy codebase during a refactoring phase
02Architecting the error handling strategy for a new API or microservice project
03Creating clear API documentation for frontend teams to handle edge cases and retries