From dec51348e630c1567e98b44ee913051be50e1ed9 Mon Sep 17 00:00:00 2001 From: Juan Font Alonso Date: Mon, 20 Jun 2022 20:29:42 +0200 Subject: [PATCH] Minor status change --- api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.go b/api.go index bd78a0a9..96a00b98 100644 --- a/api.go +++ b/api.go @@ -71,7 +71,7 @@ func (h *Headscale) RegisterWebAPI( machineKeyStr := r.URL.Query().Get("key") if machineKeyStr == "" { w.Header().Set("Content-Type", "text/plain; charset=utf-8") - w.WriteHeader(http.StatusUnauthorized) + w.WriteHeader(http.StatusBadRequest) w.Write([]byte("Wrong params")) return