protected static function find_error_record($errorCode)
    {
        $result = static::singleton()->invokeWithExtensions('getErrorRecordFor', $errorCode);
        $result = array_filter($result);
        if ($result) {
            return reset($result);
        }

        return null;
    }
protected static function find_error_record($errorCode)
    {
        $result = static::singleton()->invokeWithExtensions('getErrorRecordFor', $errorCode);
        $result = array_filter($result);
        if ($result) {
            return reset($result);
        }

        return null;
    }
protected static function find_error_record ( $ errorCode ) { $ result = static :: singleton ( ) -> invokeWithExtensions ( 'getErrorRecordFor' , $ errorCode ) ; $ result = array_filter ( $ result ) ; if ( $ result ) { return reset ( $ result ) ; } return null ; }
Given a HTTP Error, find an appropriate substitute File or SiteTree data object instance.

@param int $errorCode HTTP Error value

@return File|SiteTree File or SiteTree object to use for the given error
Given a HTTP Error find an appropriate substitute File or SiteTree data object instance .