• Модуль: rest
  • Путь к файлу: ~/bitrix/modules/rest/classes/general/rest.php
  • Класс: CRestServer
  • Вызов: CRestServer::outputError
private function outputError()
{
	$res = array_merge(array(
		'error' => $this->error->getErrorCode(),
		'error_description' => $this->error->getMessage(),
	), $this->error->getAdditional());

	return $res;
}