Remember the basics:

Gone for entities that can be deleted
NotFound for entities that can't
This commit is contained in:
Jordan Dominion
2024-09-21 17:59:58 -04:00
parent 25a0e49e94
commit 2c3542a82a
@@ -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<UserGroup>();
return Gone<UserGroup>();
return new AuthorityResponse<UserGroup>(userGroup);
}