diff --git a/api/server/httputils/errors.go b/api/server/httputils/errors.go index 8c605f3362..40ff351495 100644 --- a/api/server/httputils/errors.go +++ b/api/server/httputils/errors.go @@ -64,6 +64,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