php8.5
Home/ Manual/ http / response/ Swoole\Http\Response::status

Swoole\Http\Response::status

PHP function Edit on GitHub ✎

(PECL swoole >= 1.9.0)

Set the status code of the HTTP response.

Description

Swoole\Http\Response::status(string $http_code): ReturnType

Set the status code of the HTTP response.

Parameters

http_code

Return Values

Source: reference/swoole/swoole/http/response/status.xml · from the official PHP manual (php/doc-en)