Updated error code
This commit is contained in:
parent
e3cd6092e6
commit
6960c399b1
1 changed files with 1 additions and 1 deletions
|
@ -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([
|
||||
|
|
Loading…
Reference in a new issue