diff --git a/cmd/admin-handlers.go b/cmd/admin-handlers.go index 5344404a0..92e1e8010 100644 --- a/cmd/admin-handlers.go +++ b/cmd/admin-handlers.go @@ -770,7 +770,7 @@ func (a adminAPIHandlers) ProfileHandler(w http.ResponseWriter, r *http.Request) var err error duration, err = time.ParseDuration(dstr) if err != nil { - writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrServerNotInitialized), r.URL) + writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrInvalidRequest), r.URL) return } }