From da71c9261d9b945e9e4a91fc1c7922fc896872a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Sun, 27 Dec 2020 17:07:09 +0100 Subject: [PATCH] API: Target member was not found, return 404. --- internal/api/room/control.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/room/control.go b/internal/api/room/control.go index efeb4e0b..de7648c4 100644 --- a/internal/api/room/control.go +++ b/internal/api/room/control.go @@ -108,7 +108,7 @@ func (h *RoomHandler) controlGive(w http.ResponseWriter, r *http.Request) { target, ok := h.sessions.Get(memberId) if !ok { - utils.HttpBadRequest(w, "Target member was not found.") + utils.HttpNotFound(w, "Target member was not found.") return }