src/ErrorPage.php
public static function get_content_for_errorcode($statusCode)
    {
        if (!self::config()->enable_static_file) {
            return null;
        }

        // Attempt to retrieve content from generated file handler
        $filename = self::get_error_filename($statusCode);
        $storeFilename = File::join_paths(
            self::config()->store_filepath,
            $filename
        );
        return self::get_asset_handler()->getContent($storeFilename);
    }
public static function get_content_for_errorcode($statusCode)
    {
        if (!self::config()->enable_static_file) {
            return null;
        }

        // Attempt to retrieve content from generated file handler
        $filename = self::get_error_filename($statusCode);
        $storeFilename = File::join_paths(
            self::config()->store_filepath,
            $filename
        );
        return self::get_asset_handler()->getContent($storeFilename);
    }
public static function get_content_for_errorcode ( $ statusCode ) { if ( ! self :: config ( ) -> enable_static_file ) { return null ; } // Attempt to retrieve content from generated file handler $ filename = self :: get_error_filename ( $ statusCode ) ; $ storeFilename = File :: join_paths ( self :: config ( ) -> store_filepath , $ filename ) ; return self :: get_asset_handler ( ) -> getContent ( $ storeFilename ) ; }
Returns statically cached content for a given error code

@param int $statusCode A HTTP Statuscode, typically 404 or 500
@return string|null
Returns statically cached content for a given error code