SunshinePHP Developer Conference 2015

HttpResponse::status

(PECL pecl_http >= 0.12.0)

HttpResponse::statusSend HTTP response status

Descrição

static bool HttpResponse::status ( int $status )

Esta função é um apelido para: http_send_status().

add a note add a note

User Contributed Notes 1 note

up
0
VolodyA! V Anarhist
11 days ago
For those with the older versions of PHP you can still set the response code by using the header function. For example:

  //HttpResponse::status(403);
  header("HTTP/1.0 403 Forbidden");
To Top