def parse_dav_response(doc)
      doc.remove_namespaces!
      if doc.at_xpath("//error")
        {
            exception: doc.xpath("//exception").text,
            message: doc.xpath("//message").text
        }
      elsif doc.at_xpath("//status")
        {
            status: doc.xpath("//status").text
        }
      else
        {
            status: "ok"
        }
      end
    end
def parse_dav_response(doc)
      doc.remove_namespaces!
      if doc.at_xpath("//error")
        {
            exception: doc.xpath("//exception").text,
            message: doc.xpath("//message").text
        }
      elsif doc.at_xpath("//status")
        {
            status: doc.xpath("//status").text
        }
      else
        {
            status: "ok"
        }
      end
    end
Shows errors, or success message

 @param doc [Object] Nokogiri::XML::Document
 @return [Hash] State response