API Error Handling
Standardizes API error responses and status codes to improve client-side recovery and system observability.
The API Error Handling skill provides Claude with expert-level guidance for designing and implementing robust error responses based on industry standards like RFC 7807 and RFC 7231. It ensures your APIs communicate failures effectively by enforcing the correct use of 4xx and 5xx status codes, implementing machine-readable error codes instead of fragile string messages, and providing actionable recovery guidance through Retry-After headers. This skill is essential for developers looking to build professional, developer-friendly APIs that are easy to debug and integrate, while avoiding common anti-patterns like generic 500 errors or inconsistent response formats.