ставим в ответ 500.
try {
if (!file_exists($path)) {
throw new Exception('File "'.$path.' is not exists."');
}
$contents = file_get_contents($path);
if ($contents === false) {
throw new Exception('Unable to read file "'.$path.'."');
}
$data = json_decode($contents);
if (is_null($data)) {
throw new Exception('Unable to decode file "'.$path.'."');
}
$this->employees = $data;
} catch (Exception | TypeError $e) {
throw new UnableToLoadEmployeeDataException($e->getMessage());
}
это каждая "строка" - это отдельный джейсон объект, или это единый джейсон массив, в котором несколько элементов?