response = make_response(render_template('not_found.html'), 404) # it waits until you return return response