diff --git a/application/controllers/NanoHealthController.php b/application/controllers/NanoHealthController.php index 29c1a7fc..cbdd4669 100644 --- a/application/controllers/NanoHealthController.php +++ b/application/controllers/NanoHealthController.php @@ -410,9 +410,8 @@ class NanoHealthController extends CI_Controller private function makeRequest($method , $path , $request_body = []){ if(!$this->isLogged()) { - return json_encode(['status' => 500]); + return json_encode(['status' => 401]); } - $url = NANO_SANTE_SERVICE_URL.$path; $ch = curl_init($url); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);