# File lib/aws/core/json_client.rb, line 29 def extract_error_code response if response.http_response.status >= 300 and body = response.http_response.body and json = (JSON.load(body) rescue nil) and type = json["__type"] and type =~ %r\#(.*)$/ $1 end end
# File lib/aws/core/json_client.rb, line 22 def new_request req = super req.headers["content-type"] = "application/x-amz-json-1.0" req end