Http.php
public static function setResponseStatus(int $status) : void
    {
        if (array_key_exists($status, Http::$http_status_messages)) {
            header('HTTP/1.1 ' . $status . ' ' . Http::$http_status_messages[$status]);
        }
    }
public static function setResponseStatus(int $status) : void
    {
        if (array_key_exists($status, Http::$http_status_messages)) {
            header('HTTP/1.1 ' . $status . ' ' . Http::$http_status_messages[$status]);
        }
    }
public static function setResponseStatus ( int $ status ) : void { if ( array_key_exists ( $ status , Http :: $ http_status_messages ) ) { header ( 'HTTP/1.1 ' . $ status . ' ' . Http :: $ http_status_messages [ $ status ] ) ; } }
Set response header status

Http::setResponseStatus(404);

@param integer $status Status code
@return void
Set response header status