diff --git a/app/controllers/api/users.php b/app/controllers/api/users.php index 7e857c9def..690b70a65d 100644 --- a/app/controllers/api/users.php +++ b/app/controllers/api/users.php @@ -43,7 +43,7 @@ $utopia->post('/v1/users') ]); if (!empty($profile)) { - throw new Exception('User already registered', 400); + throw new Exception('User already registered', 409); } $user = $projectDB->createDocument([