Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for writeErrorResponseJSON (0.14 sec)

  1. 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: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Sep 12 20:44:05 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. 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: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Wed Jul 03 07:17:20 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top