Swoole\Http\Response->status

Declaration

<?php
Swoole\Http\Response->status(int $status)

Parameters

status

HTTP status code

Return

Response

Description

Set the HTTP status code sending to HTTP client.

This method must be called before the $response->end method.

Example