Флэста ленивый стиль ответа с `make_response`
response = make_response(render_template('not_found.html'), 404)
Puzzled Puffin
response = make_response(render_template('not_found.html'), 404)
response = make_response(render_template('not_found.html'), 404)
# it waits until you return
return response