From 756863f298f9e4277863f9e8758e253c5ae95923 Mon Sep 17 00:00:00 2001
From: Owen Jacobson <owen@grimoire.ca>
Date: Fri, 11 Oct 2024 22:57:56 -0400
Subject: Return a distinct error when an invite username is in use.

I've also aligned channel creation with this (it's 409 Conflict). To make server setup more distinct, it now returns 503 Service Unavailable if setup has not been completed.
---
 ui/routes/(app)/+layout.svelte | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'ui/routes/(app)/+layout.svelte')

diff --git a/ui/routes/(app)/+layout.svelte b/ui/routes/(app)/+layout.svelte
index 38df9b9..9abaaf4 100644
--- a/ui/routes/(app)/+layout.svelte
+++ b/ui/routes/(app)/+layout.svelte
@@ -36,7 +36,7 @@
                 currentUser.update(() => null);
                 goto('/login');
                 break;
-            case 409:
+            case 503:
                 currentUser.update(() => null);
                 goto('/setup');
                 break;
-- 
cgit v1.2.3

