# File lib/rhc/rest/client.rb, line 623
        def retry_proxy(response, i, args, client)
          if response.status == 502
            debug "ERROR: Received bad gateway from server, will retry once if this is a GET"
            return true if i == 0 && args[0] == :get
            raise ConnectionException.new(
              "An error occurred while communicating with the server. This problem may only be temporary."\
              "#{client.proxy.present? ? " Check that you have correctly specified your proxy server '#{client.proxy}' as well as your OpenShift server '#{args[1]}'." : " Check that you have correctly specified your OpenShift server '#{args[1]}'."}")
          end
        end