# What Goes Back Out

What Goes Back Out: Reading FastAPI's 422 Validation Errors, Response Models: Choosing What Goes Out.

Updated: November 19, 2026

1. [Reading FastAPI's 422 Validation Errors](https://www.ask-codey.com/lessons/fastapi-validation-error-responses) (Apprentice): When a request breaks a model's rules, FastAPI answers 422 with a detail list that has one entry per problem, whose loc says where the problem is, msg what's wrong, type what kind of problem it is and input what was sent, so an app can show each message beside its own box.
2. [Response Models: Choosing What Goes Out](https://www.ask-codey.com/lessons/fastapi-pydantic-response-models) (Journeyman): A response model says exactly which fields a route sends back, set by the route's return type or by response_model=, so separate models for what comes in and what goes out keep fields such as staff notes and password hashes inside the API.

Source: https://www.ask-codey.com/courses/python-web-apis/topics/fastapi-what-goes-out
