- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for writeErrorResponseJSON (0.17 sec)
-
cmd/tier-handlers.go
writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL) return } if err := globalTierConfigMgr.Edit(ctx, scName, creds); err != nil { writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL) return } if err := globalTierConfigMgr.Save(ctx, objAPI); err != nil { writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL) return }
Registered: 2024-06-16 00:44 - Last Modified: 2024-05-24 23:05 - 7.5K bytes - Viewed (0) -
cmd/kms-handlers.go
if objectAPI == nil { return } if GlobalKMS == nil { writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrKMSNotConfigured), r.URL) return } metrics, err := GlobalKMS.Metrics(ctx) if err != nil { writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL) return } if res, err := json.Marshal(metrics); err != nil {
Registered: 2024-06-16 00:44 - Last Modified: 2024-05-24 23:05 - 8.2K bytes - Viewed (0) -
cmd/admin-handler-utils.go
switch adminAPIErr { case ErrNone: return objectAPI, cred case ErrAccessDenied: // Try another continue default: writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(adminAPIErr), r.URL) return nil, cred } } writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrAccessDenied), r.URL) return nil, auth.Credentials{} } // AdminError - is a generic error for all admin APIs.
Registered: 2024-06-16 00:44 - Last Modified: 2024-05-24 23:05 - 8.2K bytes - Viewed (0)