In this chapter, we learned what responses and response models are and what is meant by error handling. We also learned about HTTP status codes and why it is important to use them.
We also created response models from the knowledge we gained about creating models from the previous chapter and created a response model to return only the items in the to-do list without their IDs. Lastly, we learned about errors and error handling. We updated our existing routes to return the right response code instead of the default
200 status code.
In the next chapter, you will be introduced to templating FastAPI applications with Jinja. You will first be introduced to the basics needed to get you up and running with Jinja templating, after which you will create a user interface using your templating knowledge for our simple to-do application.