This visual trace shows how FastAPI handles multiple response types. When a client sends a request, FastAPI matches the route and checks the response_class. If HTMLResponse is set, it calls the endpoint function and prepares HTML content. Then it sends this HTML back to the client. Variables like response_class and returned_content change during execution. Beginners often wonder why HTML is sent instead of plain text; it's because of the response_class setting. If not set, FastAPI defaults to PlainTextResponse for string returns. This trace helps understand how FastAPI decides what to send back.