def METHOD_NAME(self, pghoard_ipv4_hostname):
    pghoard_ipv4_hostname.write_backup_state_to_json_file()
    conn = HTTPConnection(host="::1", port=pghoard_ipv4_hostname.config["http_port"])
    with raises(ConnectionRefusedError):
        conn.request("GET", "/status")