diff --git a/cmd/admin-handlers.go b/cmd/admin-handlers.go index a067e6b1e..2f249fcd1 100644 --- a/cmd/admin-handlers.go +++ b/cmd/admin-handlers.go @@ -1761,6 +1761,6 @@ func (a adminAPIHandlers) ServerHardwareInfoHandler(w http.ResponseWriter, r *ht writeSuccessResponseJSON(w, jsonBytes) default: - writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrMethodNotAllowed), r.URL) + writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrBadRequest), r.URL) } }