# File lib/cloudfiles/container.rb, line 396 def make_private raise Exception::CDNNotAvailable unless cdn_available? headers = { "X-CDN-Enabled" => "False" } begin SwiftClient.post_container(self.connection.cdnurl, self.connection.authtoken, escaped_name, headers) refresh true rescue ClientException => e raise CloudFiles::Exception::NoSuchContainer, "Container #{@name} does not exist" unless (e.status.to_s == "201" || e.status.to_s == "202") end end