return$response->withStatus(400)->withJson(['errors'=>'Error during processing in getRetentionRules : '.$curlResponse['errors']]);
return$response->withStatus(400)->withJson(['errors'=>'Error returned by the route /recordsManagement/retentionRule/Index : '.$curlResponse['errors']]);
}elseif($curlResponse['code']!=200){
return$response->withStatus(400)->withJson(['errors'=>'Error returned by the route /recordsManagement/retentionRule/Index : '.$curlResponse['response']['message']]);