Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for apierrors (0.07 sec)

  1. cmd/api-response.go

    }
    
    func writeErrorResponseHeadersOnly(w http.ResponseWriter, err APIError) {
    	w.Header().Set(xMinIOErrCodeHeader, err.Code)
    	w.Header().Set(xMinIOErrDescHeader, "\""+err.Description+"\"")
    	writeResponse(w, err.HTTPStatusCode, nil, mimeNone)
    }
    
    func writeErrorResponseString(ctx context.Context, w http.ResponseWriter, err APIError, reqURL *url.URL) {
    	// Generate string error response.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 19:27:06 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  2. cmd/admin-heal-ops.go

    	ahs.RLock()
    	defer ahs.RUnlock()
    	h, exists = ahs.healSeqMap[path]
    	return h, exists
    }
    
    func (ahs *allHealState) stopHealSequence(path string) ([]byte, APIError) {
    	var hsp madmin.HealStopSuccess
    	he, exists := ahs.getHealSequence(path)
    	if !exists {
    		hsp = madmin.HealStopSuccess{
    			ClientToken: "unknown",
    			StartTime:   UTCNow(),
    		}
    	} else {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  3. cmd/bucket-replication.go

    // It also returns true if replication destination is same as this server.
    func validateReplicationDestination(ctx context.Context, bucket string, rCfg *replication.Config, opts *validateReplicationDestinationOptions) (bool, APIError) {
    	if opts == nil {
    		opts = &validateReplicationDestinationOptions{}
    	}
    	var arns []string
    	if rCfg.RoleArn != "" {
    		arns = append(arns, rCfg.RoleArn)
    	} else {
    		for _, rule := range rCfg.Rules {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 06:49:55 UTC 2024
    - 116.1K bytes
    - Viewed (0)
  4. cmd/object-handlers.go

    		// If not set, convert or use BadRequest
    		if s3Err == ErrNone {
    			apiErr = toAPIError(ctx, err)
    			if apiErr.Code == "InternalError" {
    				// Convert generic internal errors to bad requests.
    				apiErr = APIError{
    					Code:           "BadRequest",
    					Description:    err.Error(),
    					HTTPStatusCode: http.StatusBadRequest,
    				}
    			}
    		}
    		writeErrorResponse(ctx, w, apiErr, r.URL)
    		return
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
Back to top