diff --git a/api/http/security/bouncer.go b/api/http/security/bouncer.go index c7dd164ff..349925903 100644 --- a/api/http/security/bouncer.go +++ b/api/http/security/bouncer.go @@ -280,7 +280,7 @@ func (bouncer *RequestBouncer) mwAuthenticateFirst(tokenLookups []tokenLookup, n for _, lookup := range tokenLookups { resultToken, err := lookup(r) if err != nil { - httperror.WriteError(w, http.StatusUnauthorized, "Invalid API key", httperrors.ErrUnauthorized) + httperror.WriteError(w, http.StatusUnauthorized, "Invalid token", httperrors.ErrUnauthorized) return }