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");
(PECL pecl_http >= 0.12.0)
HttpResponse::status — Envoi le statut de la rĂ©ponse HTTP
$status
)Cette fonction est un alias de : http_send_status().
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");