array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'swoole-http-response.status.php', 1 => 'Swoole\\Http\\Response::status', 2 => 'Set the status code of the HTTP response.', ), 'up' => array ( 0 => 'class.swoole-http-response.php', 1 => 'Swoole\\Http\\Response', ), 'prev' => array ( 0 => 'swoole-http-response.sendfile.php', 1 => 'Swoole\\Http\\Response::sendfile', ), 'next' => array ( 0 => 'swoole-http-response.write.php', 1 => 'Swoole\\Http\\Response::write', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/swoole/swoole/http/response/status.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PECL swoole >= 1.9.0)
Swoole\Http\Response::status — Set the status code of the HTTP response.
Set the status code of the HTTP response.
http_code