From 428d6939ecb0443304bf15bbe4a1d284917db0c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Wed, 18 Nov 2020 23:05:26 +0100 Subject: [PATCH] use HttpUnprocessableEntity if already broadcasting. --- internal/api/room/broadcast.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/api/room/broadcast.go b/internal/api/room/broadcast.go index e4cae0e8..07f0fa46 100644 --- a/internal/api/room/broadcast.go +++ b/internal/api/room/broadcast.go @@ -32,7 +32,7 @@ func (h *RoomHandler) boradcastStart(w http.ResponseWriter, r *http.Request) { } if h.capture.BroadcastEnabled() { - utils.HttpBadRequest(w, "Server is already broadcasting.") + utils.HttpUnprocessableEntity(w, "Server is already broadcasting.") return } @@ -53,7 +53,7 @@ func (h *RoomHandler) boradcastStart(w http.ResponseWriter, r *http.Request) { func (h *RoomHandler) boradcastStop(w http.ResponseWriter, r *http.Request) { if !h.capture.BroadcastEnabled() { - utils.HttpBadRequest(w, "Server is not broadcasting.") + utils.HttpUnprocessableEntity(w, "Server is not broadcasting.") return }