Skip to content

Commit faa9d91

Browse files
authored
Merge pull request #70 from open-runtimes/update-error-code
Update status code to 409 in createRuntime endpoint
2 parents efff92a + f90e6f4 commit faa9d91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/http.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ function removeAllRuntimes(Table $activeRuntimes, Orchestration $orchestration):
398398

399399
if ($activeRuntimes->exists($runtimeName)) {
400400
if ($activeRuntimes->get($runtimeName)['status'] == 'pending') {
401-
throw new \Exception('A runtime with the same ID is already being created. Attempt a execution soon.', 500);
401+
throw new \Exception('A runtime with the same ID is already being created. Attempt a execution soon.', 409);
402402
}
403403

404404
throw new Exception('Runtime already exists.', 409);

0 commit comments

Comments
 (0)