What problem does it solve?
This Skill provides comprehensive guidelines and best practices for designing effective error messages that inform users about what went wrong, why, and how to fix it, improving user experience and reducing support load.
Core Features & Use Cases
- Structured Error Design: Learn the three-part structure (What, Why, Now What) for clear error communication.
- Standard Compliance: Understand and implement RFC 7807 Problem Details for consistent API error responses.
- Code Hierarchy: Design self-documenting, namespaced error codes.
- HTTP Status Codes: Correctly map errors to appropriate HTTP status codes.
- User vs. Developer Facing: Differentiate and format errors for different audiences.
- Localization: Write error strings that are easily translatable.
- Anti-Patterns: Avoid common pitfalls like leaking internal details or blaming the user.
- Use Case: When developing an API, ensure all error responses follow RFC 7807, providing clear
type, title, and detail fields, along with appropriate HTTP status codes, to guide developers consuming the API.
Quick Start
Explain the three-part structure for error messages.