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.
-
Lesson 1 of 7
22.1 Response models and output filtering
-
Lesson 2 of 7
22.2 Status codes and response classes
-
Lesson 3 of 7
22.3 HTTPException and custom exception handlers
-
Lesson 4 of 7
22.4 Validation errors and the 422 response
-
Lesson 5 of 7
22.5 Streaming and file responses
-
Lesson 6 of 7
22.6 Background tasks
-
Lesson 7 of 7
22.7 Customising OpenAPI: tags, examples and metadata