Externally generated error messages
the external environment, such as a language interpreter, handles the error and constructs its own message,
whose contents are not under direct control by the programmer.
Self generated messages
the source code explicitly constructs the error message and delivers it.
security warning
Automatically generated error messages may include sensitive information about their environment, users, or associated data.
Flask error handling
Flask allows for custom error pages in which we can define our own error messages and therefore help
prevent information leakage.