• Модуль: webdav
  • Путь к файлу: ~/bitrix/modules/webdav/classes/editdocbase.php
  • Класс: CWebDavEditDocBase
  • Вызов: CWebDavEditDocBase::checkHttpResponse
protected function checkHttpResponse(CHTTP $http)
{
	//todo this is terror
	if($http->status == '403')
	{
		if(!empty($http->headers['WWW-Authenticate']) && is_string($http->headers['WWW-Authenticate']))
		{
			if(mb_strpos($http->headers['WWW-Authenticate'], 'insufficient') !== false)
			{
				$this->setInternalError(static::INTERNAL_ERROR_INSUFFICIENT_SCOPE);
			}
		}
	}
	elseif($http->status == '401')
	{
		$this->setInternalError(static::INTERNAL_ERROR_INVALID_CREDENTIALS);
	}
}