Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for StatusConflict (0.17 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/conflict_test.go

    					Path:    fieldpath.MakePathOrDie("spec", "replicas"),
    				},
    			},
    			expected: &errors.StatusError{
    				ErrStatus: metav1.Status{
    					Status: metav1.StatusFailure,
    					Code:   http.StatusConflict,
    					Reason: metav1.StatusReasonConflict,
    					Details: &metav1.StatusDetails{
    						Causes: []metav1.StatusCause{
    							{
    								Type:    metav1.CauseTypeFieldManagerConflict,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/status_test.go

    			Status:  metav1.StatusFailure,
    			Code:    http.StatusConflict,
    			Reason:  "AlreadyExists",
    			Message: "foos \"bar\" already exists",
    			Details: &metav1.StatusDetails{
    				Group: "",
    				Kind:  "foos",
    				Name:  "bar",
    			},
    		},
    		errors.NewConflict(schema.GroupResource{Resource: "foos"}, "bar", stderrs.New("failure")): {
    			Status:  metav1.StatusFailure,
    			Code:    http.StatusConflict,
    			Reason:  "Conflict",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jan 05 13:03:34 UTC 2019
    - 2.4K bytes
    - Viewed (0)
  3. src/net/http/status.go

    	StatusNotAcceptable                = 406 // RFC 9110, 15.5.7
    	StatusProxyAuthRequired            = 407 // RFC 9110, 15.5.8
    	StatusRequestTimeout               = 408 // RFC 9110, 15.5.9
    	StatusConflict                     = 409 // RFC 9110, 15.5.10
    	StatusGone                         = 410 // RFC 9110, 15.5.11
    	StatusLengthRequired               = 411 // RFC 9110, 15.5.12
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 10 23:30:35 UTC 2022
    - 7.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/status.go

    		//TODO: check for invalid responses
    		return &status
    	default:
    		status := http.StatusInternalServerError
    		switch {
    		//TODO: replace me with NewConflictErr
    		case storage.IsConflict(err):
    			status = http.StatusConflict
    		}
    		// Log errors that were not converted to an error status
    		// by REST storage - these typically indicate programmer
    		// error by not using pkg/api/errors, or unexpected failure
    		// cases.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 26 12:39:56 UTC 2020
    - 2.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go

    func NewAlreadyExists(qualifiedResource schema.GroupResource, name string) *StatusError {
    	return &StatusError{metav1.Status{
    		Status: metav1.StatusFailure,
    		Code:   http.StatusConflict,
    		Reason: metav1.StatusReasonAlreadyExists,
    		Details: &metav1.StatusDetails{
    			Group: qualifiedResource.Group,
    			Kind:  qualifiedResource.Resource,
    			Name:  name,
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 21 03:41:32 UTC 2022
    - 30.5K bytes
    - Viewed (0)
  6. internal/kms/errors.go

    		Err:     "insufficient permissions to perform KMS operation",
    	}
    
    	// ErrKeyExists is an error returned by the KMS when trying to
    	// create a key that already exists.
    	ErrKeyExists = Error{
    		Code:    http.StatusConflict,
    		APICode: "kms:KeyAlreadyExists",
    		Err:     "key with given key ID already exits",
    	}
    
    	// ErrKeyNotFound is an error returned by the KMS when trying to
    	// use a key that does not exist.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  7. cmd/tier-handlers.go

    )
    
    var (
    	// error returned when remote tier already exists
    	errTierAlreadyExists = AdminError{
    		Code:       "XMinioAdminTierAlreadyExists",
    		Message:    "Specified remote tier already exists",
    		StatusCode: http.StatusConflict,
    	}
    	// error returned when remote tier is not found
    	errTierNotFound = AdminError{
    		Code:       "XMinioAdminTierNotFound",
    		Message:    "Specified remote tier was not found",
    		StatusCode: http.StatusNotFound,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  8. cmd/api-errors.go

    		HTTPStatusCode: http.StatusConflict,
    	},
    	ErrBucketAlreadyExists: {
    		Code:           "BucketAlreadyExists",
    		Description:    "The requested bucket name is not available. The bucket namespace is shared by all users of the system. Please select a different name and try again.",
    		HTTPStatusCode: http.StatusConflict,
    	},
    	ErrAllAccessDisabled: {
    		Code:           "AllAccessDisabled",
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 92.1K bytes
    - Viewed (1)
  9. cmd/admin-handler-utils.go

    				HTTPStatusCode: http.StatusBadRequest,
    			}
    		case errors.Is(err, kes.ErrKeyExists):
    			apiErr = APIError{
    				Code:           "XMinioKMSKeyExists",
    				Description:    err.Error(),
    				HTTPStatusCode: http.StatusConflict,
    			}
    
    		// Tier admin API errors
    		case errors.Is(err, madmin.ErrTierNameEmpty):
    			apiErr = APIError{
    				Code:           "XMinioAdminTierNameEmpty",
    				Description:    err.Error(),
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  10. 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))
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Mar 06 16:56:10 UTC 2023
    - 6.6K bytes
    - Viewed (0)
Back to top