Skip to content

Instantly share code, notes, and snippets.

@someara
Created August 12, 2010 00:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save someara/520105 to your computer and use it in GitHub Desktop.
Save someara/520105 to your computer and use it in GitHub Desktop.
request => {:path=>"/v1.0/512133/servers.json", :host=>"servers.api.rackspacecloud.com", :body=>"{\"server\":{\"name\":\"1-centos-rscloud.afistfulofservers.net\",\"imageId\":51,\"flavorId\":1}}", :method=>"POST", :expects=>202, :headers=>{"X-Auth-Token"=>"526f6b17-6e92-4024-b008-067f91166817", "Content-Type"=>"application/json", "Content-Length"=>86, "Host"=>"servers.api.rackspacecloud.com"}}
response => #<Excon::Response:0x101e5fbd0 @body="\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n<html>\n <head>\n <title>503 Service Unavailable</title>\n </head>\n <body>\n <h1>Error 503 Service Unavailable</h1>\n <p>Service Unavailable</p>\n <h3>Guru Meditation:</h3>\n <p>XID: 272869562</p>\n <address>\n <a href=\"http://www.varnish-cache.org/\">Varnish</a>\n </address>\n </body>\n</html>\n", @status=503, @headers={"Retry-After"=>"0", "X-Varnish"=>"272869562", "Via"=>"1.1 varnish", "Date"=>"Thu, 12 Aug 2010 00:50:17 GMT", "Content-Type"=>"text/html; charset=utf-8", "Content-Length"=>"465", "Server"=>"Varnish", "Age"=>"60", "Connection"=>"close"}>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment