Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ErrBucketConflict (0.13 sec)

  1. internal/config/dns/operator_dns.go

    		var errorStringBuilder strings.Builder
    		io.Copy(&errorStringBuilder, io.LimitReader(resp.Body, resp.ContentLength))
    		errorString := errorStringBuilder.String()
    		if resp.StatusCode == http.StatusConflict {
    			return ErrBucketConflict(Error{bucket, errors.New(errorString)})
    		}
    		return newError(bucket, fmt.Errorf("service create for bucket %s, failed with status %s, error %s", bucket, resp.Status, errorString))
    	}
    	return nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Mar 06 16:56:10 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  2. cmd/api-errors.go

    	case BackendDown:
    		apiErr = ErrBackendDown
    	case ObjectNameTooLong:
    		apiErr = ErrKeyTooLongError
    	case dns.ErrInvalidBucketName:
    		apiErr = ErrInvalidBucketName
    	case dns.ErrBucketConflict:
    		apiErr = ErrBucketAlreadyExists
    	default:
    		if strings.Contains(err.Error(), "request declared a Content-Length") {
    			apiErr = ErrIncompleteBody
    		} else {
    			apiErr = ErrInternalError
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 92.1K bytes
    - Viewed (0)
Back to top