Associates the error handler

def init_app(application):
    """
    Associates the error handler
    """
    for code in werkzeug.exceptions.default_exceptions:
        application.register_error_handler(code, handle_http_exception)