Use current_app.response_class instead of make_response()