diff --git a/api/server/httputils/errors.go b/api/server/httputils/errors.go index 59098a9df0..2f877651ea 100644 --- a/api/server/httputils/errors.go +++ b/api/server/httputils/errors.go @@ -63,6 +63,8 @@ func GetHTTPErrorStatusCode(err error) int { {"unauthorized", http.StatusUnauthorized}, {"hasn't been activated", http.StatusForbidden}, {"this node", http.StatusServiceUnavailable}, + {"needs to be unlocked", http.StatusServiceUnavailable}, + {"certificates have expired", http.StatusServiceUnavailable}, } { if strings.Contains(errStr, status.keyword) { statusCode = status.code