error-handling-backend-python

Community

Robust Python error handling for FastAPI.

Authorcongiuluc
Version1.0.0
Installs0

System Documentation

What problem does it solve?

The Skill provides a standardized error handling framework for Python FastAPI applications, including a hierarchy of domain exceptions, global exception handlers, and safe, structured API responses.

Core Features & Use Cases

  • Typed exception hierarchy: NotFoundException, ValidationException, ConflictException, UnauthorizedException, ForbiddenException, BusinessRuleException.
  • Global exception handlers: Centralized registration to return ApiResponse envelopes and log errors.
  • Structured logging: Integrates with structlog for correlated traces across requests.
  • Retry patterns: Optional integration with tenacity for resilient external calls.
  • Correlation ID support: Middleware to propagate and log correlation IDs.

Quick Start

Register the exception handlers on your FastAPI app to enable consistent error responses.

Dependency Matrix

Required Modules

None required

Components

references

💻 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: error-handling-backend-python
Download link: https://github.com/congiuluc/my-awesome-copilot/archive/main.zip#error-handling-backend-python

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.