From 6960c399b1159bd925402cf7b06bba470419d770 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Wed, 4 Mar 2020 15:06:52 +0200 Subject: [PATCH] Updated error code --- app/controllers/api/users.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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([