1
0
Fork 0
mirror of synced 2024-07-03 21:50:34 +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)) { if (!empty($profile)) {
throw new Exception('User already registered', 400); throw new Exception('User already registered', 409);
} }
$user = $projectDB->createDocument([ $user = $projectDB->createDocument([