public static function getPhrase(int $code):string
    {
        if (isset(self::$response[$code])) {
            return (self::$response[$code]);
        } else {
            throw new Server500(new \ArrayObject(array("explain" => "Http code does not exist",
                "solution" => "Please check your http code")));
        }
    }
public static function getPhrase(int $code):string
    {
        if (isset(self::$response[$code])) {
            return (self::$response[$code]);
        } else {
            throw new Server500(new \ArrayObject(array("explain" => "Http code does not exist",
                "solution" => "Please check your http code")));
        }
    }
public static function getPhrase ( int $ code ) : string { if ( isset ( self :: $ response [ $ code ] ) ) { return ( self :: $ response [ $ code ] ) ; } else { throw new Server500 ( new \ ArrayObject ( array ( "explain" => "Http code does not exist" , "solution" => "Please check your http code" ) ) ) ; } }
Get phrase of http code
@param int $code Http code
@return string Http phrase
@throws Server500 Http code does not exist
Get phrase of http code