1
0
Fork 0
mirror of synced 2024-06-29 19:50:26 +12:00

Updated error code

This commit is contained in:
Eldad Fux 2020-03-04 15:06:52 +02:00
parent e3cd6092e6
commit 6960c399b1

View file

@ -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([