litestar-responses
Installation
SKILL.md
Responses
Execution Workflow
- Start with the simplest return form that matches the contract: plain typed data,
Response[T], or a specialized response container. - Set status code, media type, headers, and cookies explicitly when defaults are not enough.
- Choose specialized response types for redirects, files, streams, SSE, templates, or third-party ASGI responses.
- Apply response-class layering only when serialization or envelope behavior should be shared across many handlers.
- Verify OpenAPI accuracy for typed responses, documentation-only headers/cookies, empty-body statuses, and specialized response containers.