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