public static function reasonPhraseFor(int $statusCode): string
    {
        if (isset(self::$reasonPhrases[$statusCode])) {
            return self::$reasonPhrases[$statusCode];
        }

        throw new \InvalidArgumentException(
                'Invalid or unknown HTTP status code ' . $statusCode
        );
    }
public static function reasonPhraseFor(int $statusCode): string
    {
        if (isset(self::$reasonPhrases[$statusCode])) {
            return self::$reasonPhrases[$statusCode];
        }

        throw new \InvalidArgumentException(
                'Invalid or unknown HTTP status code ' . $statusCode
        );
    }
public static function reasonPhraseFor ( int $ statusCode ) : string { if ( isset ( self :: $ reasonPhrases [ $ statusCode ] ) ) { return self :: $ reasonPhrases [ $ statusCode ] ; } throw new \ InvalidArgumentException ( 'Invalid or unknown HTTP status code ' . $ statusCode ) ; }
returns reason phrase for given status code

@api
@param   int  $statusCode
@return  string
@throws  \InvalidArgumentException
@since   4.0.0
returns reason phrase for given status code