protected function getErrorCode()
    {
        $content = $this->content;
        return is_object($content) && property_exists($content, 'code') ? (integer) $content->code : 0;
    }
protected function getErrorCode()
    {
        $content = $this->content;
        return is_object($content) && property_exists($content, 'code') ? (integer) $content->code : 0;
    }
protected function getErrorCode ( ) { $ content = $ this -> content ; return is_object ( $ content ) && property_exists ( $ content , 'code' ) ? ( integer ) $ content -> code : 0 ; }
returns the response error code

@return int
returns the response error code