Error Code Standard Guide (zh-CN)

•
40
•

Implements a standardized error code system and API response patterns for robust debugging and internationalization.

This skill provides a comprehensive framework for designing consistent, language-agnostic error codes using the PREFIX_CATEGORY_NUMBER format. It helps developers and AI assistants establish clear error-handling protocols, map internal errors to HTTP status codes, and manage localized error messages. By enforcing a structured registry, it improves system observability, simplifies frontend error display, and ensures that both humans and automated monitoring tools can quickly identify the root cause of failures across complex software architectures.

Características Principales

01AI-optimized YAML formats to reduce token usage during development
0240 GitHub stars
03Internationalization (i18n) support with structured message key templates
04Standardized PREFIX_CATEGORY_NUMBER error code formatting
05Standardized JSON response structures for single and multiple errors
06Automatic mapping between error categories and HTTP status codes

Casos de Uso

01Designing a new RESTful API with consistent error feedback
02Refactoring legacy error handling into a centralized, searchable registry
03Implementing multi-language support for user-facing error messages