<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def init_app(application):
 """ Associates the error handler """

    for code in werkzeug.exceptions.default_exceptions:
        application.register_error_handler(code, handle_http_exception)