responses

Installation
SKILL.md

Responses

Use this skill for response shaping, status code control, and custom response behavior.

Workflow

  1. Default to typed return values for standard JSON responses.
  2. Use Response(...) when headers/cookies/media/status must be controlled explicitly.
  3. Use response DTO/serialization controls where domain objects need transformation.
  4. Ensure error responses are consistent with exception handlers.

Core Patterns

Typed Return

from litestar import get

@get("/ping")
Related skills

More from alti3/litestar-skills

Installs
2
GitHub Stars
5
First Seen
Mar 2, 2026