public function getResponseCode()
    {
        $code = 0;

        $dom = $this->getDOMDocument();
        $xpath = new DOMXPath($dom);
        if (($codeAttribute = $xpath->query('/response/@code')->item(0)) instanceof DOMAttr) {
            $code = intval($codeAttribute->nodeValue);
        }

        return $code;
    }