diff --git a/PluralKit.API/Controllers/v2/SystemControllerV2.cs b/PluralKit.API/Controllers/v2/SystemControllerV2.cs index b4ae8fc1..ab730c3a 100644 --- a/PluralKit.API/Controllers/v2/SystemControllerV2.cs +++ b/PluralKit.API/Controllers/v2/SystemControllerV2.cs @@ -20,7 +20,7 @@ namespace PluralKit.API public async Task SystemGet(string systemRef) { var system = await ResolveSystem(systemRef); - if (system == null) return NotFound(); + if (system == null) throw Errors.SystemNotFound; else return Ok(system.ToJson(this.ContextFor(system), v: APIVersion.V2)); }