Something like the following in the LocalSettings file
if($_GET['bebroken']){
$wgWBRepoSettings['federatedPropertiesSourceScriptUrl'] = 'https://fsklafsalksfafaswikidata.beta.wmflabs.org/w/';
}UPDATE:
add the following request parameter to the URL in order to simulate a network error: ?sourceApiResponse=404
example: https://wikidata-federated-properties.wmflabs.org/wiki/Item:Q1?sourceApiResponse=404