https://mysteryweevil.medium.com/navigating-exception-handling-in-python-web-applications-7e6cb492fa0b