Files
main/awesome-cursor-rules-mdc/python-fastapi-best-practices-cursorrules-prompt-f/fastapi-error-handling.mdc
T
2025-02-17 17:50:15 +05:30

7 lines
339 B
Plaintext

---
description: Defines how errors should be handled within FastAPI applications using middleware.
globs: **/middleware.py
---
- Use middleware for handling unexpected errors, logging, and error monitoring.
- Prioritize error handling and edge cases.
- Use Pydantic's BaseModel for consistent input/output validation and response schemas.