Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for StatusNotFound (0.28 sec)

  1. cmd/api-errors.go

    	ErrNoSuchBucket: {
    		Code:           "NoSuchBucket",
    		Description:    "The specified bucket does not exist",
    		HTTPStatusCode: http.StatusNotFound,
    	},
    	ErrNoSuchBucketPolicy: {
    		Code:           "NoSuchBucketPolicy",
    		Description:    "The bucket policy does not exist",
    		HTTPStatusCode: http.StatusNotFound,
    	},
    	ErrNoSuchBucketLifecycle: {
    		Code:           "NoSuchBucketLifecycle",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (6)
  2. cmd/bucket-policy-handlers_test.go

    			accessKey:          credentials.AccessKey,
    			secretKey:          credentials.SecretKey,
    			expectedRespStatus: http.StatusNotFound,
    		},
    		// Test case - 9.
    		// non-existent bucket is used (with invalid bucket name)
    		// writing BucketPolicy should fail.
    		// should result in 404 StatusNotFound
    		{
    			bucketName:         ".invalid-bucket",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 32.7K bytes
    - Viewed (0)
  3. cmd/admin-handler-utils.go

    			HTTPStatusCode: http.StatusBadRequest,
    		}
    	case config.ErrConfigNotFound:
    		apiErr = APIError{
    			Code:           "XMinioConfigNotFoundError",
    			Description:    e.Error(),
    			HTTPStatusCode: http.StatusNotFound,
    		}
    	case config.ErrConfigGeneric:
    		apiErr = APIError{
    			Code:           "XMinioConfigError",
    			Description:    e.Error(),
    			HTTPStatusCode: http.StatusBadRequest,
    		}
    	case AdminError:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  4. cmd/object-handlers_test.go

    		// Expecting the response status code to http.StatusNotFound (404).
    		{
    			bucketName:       bucketName,
    			uploadID:         uploadID,
    			copySourceHeader: url.QueryEscape(SlashSeparator + bucketName + SlashSeparator + "non-existent-object"),
    			accessKey:        credentials.AccessKey,
    			secretKey:        credentials.SecretKey,
    
    			expectedRespStatus: http.StatusNotFound,
    		},
    
    		// Test case - 9.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 160K bytes
    - Viewed (0)
  5. internal/config/identity/openid/provider/keycloak.go

    	switch resp.StatusCode {
    	case http.StatusOK, http.StatusPartialContent:
    		var u User
    		if err = json.NewDecoder(resp.Body).Decode(&u); err != nil {
    			return User{}, err
    		}
    		return u, nil
    	case http.StatusNotFound:
    		return User{
    			ID:      userid,
    			Enabled: false,
    		}, nil
    	case http.StatusUnauthorized:
    		return User{}, ErrAccessTokenExpired
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 29 01:27:09 GMT 2022
    - 4.6K bytes
    - Viewed (0)
  6. internal/config/cache/cache.go

    	if err != nil {
    		return nil, err
    	}
    
    	resp, err := c.clnt.Do(req)
    	if err != nil {
    		return nil, err
    	}
    	defer xhttp.DrainBody(resp.Body)
    
    	switch resp.StatusCode {
    	case http.StatusNotFound:
    		return nil, ErrKeyMissing
    	case http.StatusOK:
    		co := &ObjectInfo{}
    		return co, co.DecodeMsg(msgp.NewReader(resp.Body))
    	default:
    		return nil, ErrInvalidArgument
    	}
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  7. cmd/tier-handlers.go

    	}
    	// error returned when remote tier is not found
    	errTierNotFound = AdminError{
    		Code:       "XMinioAdminTierNotFound",
    		Message:    "Specified remote tier was not found",
    		StatusCode: http.StatusNotFound,
    	}
    	// error returned when remote tier name is not in uppercase
    	errTierNameNotUppercase = AdminError{
    		Code:       "XMinioAdminTierNameNotUpperCase",
    		Message:    "Tier name must be in uppercase",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 15 19:52:44 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  8. cmd/warm-backend-azure.go

    		err = NotImplemented{}
    	case "OutOfRangeInput":
    		err = ObjectNameInvalid{
    			Bucket: bucket,
    			Object: object,
    		}
    	default:
    		switch statusCode {
    		case http.StatusNotFound:
    			if object != "" {
    				err = ObjectNotFound{
    					Bucket: bucket,
    					Object: object,
    				}
    			} else {
    				err = BucketNotFound{Bucket: bucket}
    			}
    		case http.StatusBadRequest:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 05 16:44:08 GMT 2024
    - 7.8K bytes
    - Viewed (1)
  9. cmd/object-lambda-handlers.go

    	"Unauthorized":                    http.StatusUnauthorized,
    	"Payment Required":                http.StatusPaymentRequired,
    	"Forbidden":                       http.StatusForbidden,
    	"Not Found":                       http.StatusNotFound,
    	"Method Not Allowed":              http.StatusMethodNotAllowed,
    	"Not Acceptable":                  http.StatusNotAcceptable,
    	"Proxy Authentication Required":   http.StatusProxyAuthRequired,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Sep 15 04:58:17 GMT 2023
    - 10.2K bytes
    - Viewed (1)
  10. cmd/metrics-v3-handler.go

    	var notFoundHandler http.Handler = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		http.Error(w, "Metrics Resource Not found", http.StatusNotFound)
    	})
    
    	// Require that metrics path has at least component.
    	if path == "/" {
    		return notFoundHandler
    	}
    
    	if isListingRequest {
    		handler := h.listMetrics(path)
    		if handler == nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 17:37:57 GMT 2024
    - 7.5K bytes
    - Viewed (0)
Back to top