From 92ffcf3c411da1fb9d48d14887213d559d451799 Mon Sep 17 00:00:00 2001 From: jvyden Date: Tue, 16 Nov 2021 17:05:23 -0500 Subject: [PATCH] Return NotFound when getting null from FindBestRoom --- ProjectLighthouse/Controllers/MatchController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProjectLighthouse/Controllers/MatchController.cs b/ProjectLighthouse/Controllers/MatchController.cs index cab8ceeb..28789b9d 100644 --- a/ProjectLighthouse/Controllers/MatchController.cs +++ b/ProjectLighthouse/Controllers/MatchController.cs @@ -110,7 +110,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers { FindBestRoomResponse? response = RoomHelper.FindBestRoom(user, token.UserLocation); - if (response == null) return this.BadRequest(); + if (response == null) return this.NotFound(); string serialized = JsonSerializer.Serialize(response, typeof(FindBestRoomResponse)); foreach (Player player in response.Players)