public function accessOverride()
    {
        if (strpos($this->scheme, 'http') === 0) {
            switch (floor($this->code / 100) * 100) {
                case 300:
                case 400:
                    return self::DIRECTIVE_ALLOW;
                case 500:
                    return self::DIRECTIVE_DISALLOW;
            }
        }
        return false;
    }
public function accessOverride()
    {
        if (strpos($this->scheme, 'http') === 0) {
            switch (floor($this->code / 100) * 100) {
                case 300:
                case 400:
                    return self::DIRECTIVE_ALLOW;
                case 500:
                    return self::DIRECTIVE_DISALLOW;
            }
        }
        return false;
    }
public function accessOverride ( ) { if ( strpos ( $ this -> scheme , 'http' ) === 0 ) { switch ( floor ( $ this -> code / 100 ) * 100 ) { case 300 : case 400 : return self :: DIRECTIVE_ALLOW ; case 500 : return self :: DIRECTIVE_DISALLOW ; } } return false ; }
Check if the code overrides the robots.txt file

@link https://developers.google.com/webmasters/control-crawl-index/docs/robots_txt#handling-http-result-codes
@link https://yandex.com/support/webmaster/controlling-robot/robots-txt.xml#additional-info

@return string|false
Check if the code overrides the robots . txt file