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