src/Http/Response/ResponseCode.php
public static function getReasonPhraseByCode($code)
    {
        if (isset(self::$codesDescription[$code])) {
            return self::$codesDescription[$code];
        }

        $group = self::getGroupFromCode($code);

        return self::getReasonPhraseByGroup($group);
    }
public static function getReasonPhraseByCode($code)
    {
        if (isset(self::$codesDescription[$code])) {
            return self::$codesDescription[$code];
        }

        $group = self::getGroupFromCode($code);

        return self::getReasonPhraseByGroup($group);
    }
public static function getReasonPhraseByCode ( $ code ) { if ( isset ( self :: $ codesDescription [ $ code ] ) ) { return self :: $ codesDescription [ $ code ] ; } $ group = self :: getGroupFromCode ( $ code ) ; return self :: getReasonPhraseByGroup ( $ group ) ; }
Provides description for IANA registered HTTP codes.
If not registered code was specified respective group description is returned.

@param int $code

@return string
Provides description for IANA registered HTTP codes . If not registered code was specified respective group description is returned .