responses
Installation
SKILL.md
Responses
Use this skill for response shaping, status code control, and custom response behavior.
Workflow
- Default to typed return values for standard JSON responses.
- Use
Response(...)when headers/cookies/media/status must be controlled explicitly. - Use response DTO/serialization controls where domain objects need transformation.
- Ensure error responses are consistent with exception handlers.
Core Patterns
Typed Return
from litestar import get