Fast API Tutorial, Part 19: Handling Errors

When building an API you’ll want to be able to manually handle errors. For example, if a user submits a GET request for a detail view on a specific item and the item does not exist in the database then they’ll need to receive a 404 error instead of a generic 400 error included from FastAPI. In this video you’ll get an introduction into how to handle errors in FastAPI. GitHub:
Back to Top