API: Target member was not found, return 404.

This commit is contained in:
Miroslav Šedivý 2020-12-27 17:07:09 +01:00
parent a6dccc753b
commit da71c9261d

View File

@ -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
}