mirror of
https://github.com/sanjeed5/awesome-cursor-rules-mdc.git
synced 2026-11-28 05:32:54 +08:00
7 lines
339 B
Plaintext
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. |