Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Swoole\Http\Response::sendfileSwoole\Http\Response::write>
^Swoole\Http\ResponseLast updated: Mon, 26 Oct 2026

Swoole\Http\Response::status

(PECL swoole >= 1.9.0)

Swoole\Http\Response::status — Set the status code of the HTTP response.

Description

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

Set the status code of the HTTP response.

Parameters

http_code

Return Values


<Swoole\Http\Response::sendfileSwoole\Http\Response::write>
^Swoole\Http\ResponseLast updated: Mon, 26 Oct 2026