From 2c3542a82a3de0df136d6df3bc3ce1cddb938f78 Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Sat, 21 Sep 2024 17:59:58 -0400 Subject: [PATCH] Remember the basics: Gone for entities that can be deleted NotFound for entities that can't --- src/Tgstation.Server.Host/Authority/UserGroupAuthority.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Tgstation.Server.Host/Authority/UserGroupAuthority.cs b/src/Tgstation.Server.Host/Authority/UserGroupAuthority.cs index 12005ff370..df7572562b 100644 --- a/src/Tgstation.Server.Host/Authority/UserGroupAuthority.cs +++ b/src/Tgstation.Server.Host/Authority/UserGroupAuthority.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Threading; @@ -82,7 +82,7 @@ namespace Tgstation.Server.Host.Authority userGroup = await userGroupsDataLoader.LoadAsync(id, cancellationToken); if (userGroup == null) - return NotFound(); + return Gone(); return new AuthorityResponse(userGroup); }