Skip to main content
New Self-paced AI courses — learn ML, deep learning, and agents on your schedule. Enroll free

Python and FastAPI

Module 22 · FastAPI responses, errors and OpenAPI

Response models, status codes, custom responses, exception handlers, streaming, background tasks and shaping the OpenAPI schema.

7 lessons Follow in order
Use the button below to sign in and unlock lessons.
Your path

Lessons in sequence

Work through these in order—each lesson builds on the previous one.

  1. Lesson 1 of 7

    22.1 Response models and output filtering

    Enroll to open · 24 min read

  2. Lesson 2 of 7

    22.2 Status codes and response classes

    Enroll to open · 24 min read

  3. Lesson 3 of 7

    22.3 HTTPException and custom exception handlers

    Enroll to open · 26 min read

  4. Lesson 4 of 7

    22.4 Validation errors and the 422 response

    Enroll to open · 26 min read

  5. Lesson 5 of 7

    22.5 Streaming and file responses

    Enroll to open · 27 min read

  6. Lesson 6 of 7

    22.6 Background tasks

    Enroll to open · 27 min read

  7. Lesson 7 of 7

    22.7 Customising OpenAPI: tags, examples and metadata

    Enroll to open · 28 min read

← Back to course