Edit
↰
Home
↑
http
↑
Env
↻
Env::setResponseCode
↲
★ Changelog
↲
Request
↲
Response
↲
Url
↲
Env::getRequestBody
↲
Env::getRequestHeader
↲
Env::getResponseCode
↲
Env::getResponseHeader
↲
Env::getResponseStatusForAllCodes
↲
Env::getResponseStatusForCode
↲
Env::negotiate
↲
Env::negotiateCharset
↲
Env::negotiateContentType
↲
Env::negotiateEncoding
↲
Env::negotiateLanguage
↲
Env::setResponseHeader
#
static
bool
http\Env::setResponseCode
(
int
$code
)
Set the HTTP response code to send.
Params:
#
int
$code
#
The HTTP response status code.
Returns:
#
bool
Success.
Show Comments from Github Discussions