exception-taxonomy
CommunityStandardize API error handling.
Authordadbodgeoff
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides a robust and hierarchical system for managing API errors, ensuring consistent, machine-readable, and informative error responses across all endpoints.
Core Features & Use Cases
- Consistent Error Responses: Define a standardized structure for all API errors.
- Machine-Readable Codes: Use enumerated error codes for programmatic handling by clients.
- HTTP Status Code Mapping: Associate specific HTTP status codes with different error types.
- Retry Hints: Include
retry_afterinformation for transient errors like rate limiting. - Use Case: When a user attempts to access a resource they don't have permission for, the API consistently returns a 403 Forbidden status with a clear
FORBIDDENerror code and a descriptive message, allowing the client to inform the user appropriately.
Quick Start
Implement the provided Python or TypeScript classes to raise structured exceptions for common API error scenarios.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: exception-taxonomy Download link: https://github.com/dadbodgeoff/drift/archive/main.zip#exception-taxonomy Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.