# File lib/aws/core/json_client.rb, line 20 def self.request_builder_for api_config, operation JSONRequestBuilder.new(api_config[:target_prefix], operation) end
# File lib/aws/core/json_client.rb, line 24 def self.response_parser_for api_config, operation JSONResponseParser.new(operation[:outputs]) end
# File lib/aws/core/json_client.rb, line 28 def extract_error_details 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 matches = type.match(%r\#(.*)$/) then code = matches[1] if code == 'RequestEntityTooLarge' message = 'Request body must be less than 1 MB' else message = json['message'] end [code, message] end end