public function getLastErrorResponse() {
        if (!empty($this->rawResponses)) {
            foreach (array_reverse($this->rawResponses) as $x) {
                if (isset($x['error'])) {
                    return $x;
                }
            }
        }
    }
public function getLastErrorResponse() {
        if (!empty($this->rawResponses)) {
            foreach (array_reverse($this->rawResponses) as $x) {
                if (isset($x['error'])) {
                    return $x;
                }
            }
        }
    }
public function getLastErrorResponse ( ) { if ( ! empty ( $ this -> rawResponses ) ) { foreach ( array_reverse ( $ this -> rawResponses ) as $ x ) { if ( isset ( $ x [ 'error' ] ) ) { return $ x ; } } } }
Gives the last response with an error code.
This may or may not be the same as the last response if multiple requests were made.
@return array associative array of HTTP response or <b>NULL</b> if no error response yet
@see getLastResponse
Gives the last response with an error code . This may or may not be the same as the last response if multiple requests were made .