# 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 =~ /\#(.*)$/
          $1
        end
      end