• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/web/http/response.php
  • Класс: BitrixMainWebHttpResponse
  • Вызов: Response::withStatus
public function withStatus(int $code, string $reasonPhrase = ''): ResponseInterface
{
	$new = clone $this;
	$new->statusCode = $code;
	$new->reasonPhrase = $reasonPhrase;

	return $new;
}