healthService->check(); if (!$result['ok']) { return $this->error('Database connection failed.', Response::HTTP_SERVICE_UNAVAILABLE, [ 'error' => $result['error'], ]); } return $this->success([ 'ok' => true, ]); } }