Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for StatusBadRequest (0.18 sec)

  1. cmd/api-errors.go

    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrInvalidStorageClass: {
    		Code:           "InvalidStorageClass",
    		Description:    "Invalid storage class.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrInvalidRequestBody: {
    		Code:           "InvalidArgument",
    		Description:    "Body shouldn't be set for this request.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrInvalidMaxUploads: {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (7)
  2. cmd/sts-errors.go

    		Description:    "A required parameter for the specified action is not supplied.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrSTSInvalidParameterValue: {
    		Code:           "InvalidParameterValue",
    		Description:    "An invalid or out-of-range value was supplied for the input parameter.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrSTSWebIdentityExpiredToken: {
    		Code:           "ExpiredToken",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  3. cmd/bucket-versioning-handler.go

    			HTTPStatusCode: http.StatusBadRequest,
    		}, r.URL)
    		return
    	}
    	if rc, _ := getReplicationConfig(ctx, bucket); rc != nil && v.Suspended() {
    		writeErrorResponse(ctx, w, APIError{
    			Code:           "InvalidBucketState",
    			Description:    "A replication configuration is present on this bucket, bucket wide versioning cannot be suspended.",
    			HTTPStatusCode: http.StatusBadRequest,
    		}, r.URL)
    		return
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 5K bytes
    - Viewed (0)
  4. internal/kms/single-key.go

    		return nil, Error{
    			HTTPStatusCode: http.StatusBadRequest,
    			APICode:        "KMS.NotFoundException",
    			Err:            fmt.Errorf("key %q does not exist", keyID),
    		}
    	}
    
    	var encryptedKey encryptedKey
    	json := jsoniter.ConfigCompatibleWithStandardLibrary
    	if err := json.Unmarshal(ciphertext, &encryptedKey); err != nil {
    		return nil, Error{
    			HTTPStatusCode: http.StatusBadRequest,
    			APICode:        "KMS.InternalException",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  5. cmd/admin-handler-utils.go

    			Description:    e.Err,
    			HTTPStatusCode: http.StatusBadRequest,
    		}
    	default:
    		switch {
    		case errors.Is(err, errTooManyPolicies):
    			apiErr = APIError{
    				Code:           "XMinioAdminInvalidRequest",
    				Description:    err.Error(),
    				HTTPStatusCode: http.StatusBadRequest,
    			}
    		case errors.Is(err, errDecommissionAlreadyRunning):
    			apiErr = APIError{
    				Code:           "XMinioDecommissionNotAllowed",
    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)
  6. cmd/bucket-policy-handlers_test.go

    		// Expecting StatusBadRequest (400).
    		{
    			bucketName:         bucketName,
    			bucketPolicyReader: bytes.NewReader([]byte(fmt.Sprintf(bucketPolicyTemplate, bucketName, bucketName))),
    
    			policyLen:          maxBucketPolicySize + 1,
    			accessKey:          credentials.AccessKey,
    			secretKey:          credentials.SecretKey,
    			expectedRespStatus: http.StatusBadRequest,
    		},
    		// Test case - 3.
    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)
  7. docs/sts/web-identity.go

    		log.Printf("%s %s", r.Method, r.RequestURI)
    
    		if err := r.ParseForm(); err != nil {
    			http.Error(w, err.Error(), http.StatusBadRequest)
    			return
    		}
    		if r.Form.Get("state") != state {
    			http.Error(w, "state did not match", http.StatusBadRequest)
    			return
    		}
    
    		var getWebTokenExpiry func() (*credentials.WebIdentityToken, error)
    		if clientSec == "" {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 19 09:13:33 GMT 2023
    - 7.8K bytes
    - Viewed (3)
  8. cmd/batch-expire.go

    			Description:    "Unsupported batch expire API version",
    			HTTPStatusCode: http.StatusBadRequest,
    		}
    	}
    
    	if r.Bucket == "" {
    		return batchExpireJobError{
    			Code:           "InvalidArgument",
    			Description:    "Bucket argument missing",
    			HTTPStatusCode: http.StatusBadRequest,
    		}
    	}
    
    	if _, err := o.GetBucketInfo(ctx, r.Bucket, BucketOptions{}); err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 21K bytes
    - Viewed (1)
  9. cmd/tier-handlers.go

    		Message:    "Tier name must be in uppercase",
    		StatusCode: http.StatusBadRequest,
    	}
    	// error returned when remote tier bucket is not found
    	errTierBucketNotFound = AdminError{
    		Code:       "XMinioAdminTierBucketNotFound",
    		Message:    "Remote tier bucket not found",
    		StatusCode: http.StatusBadRequest,
    	}
    	// error returned when remote tier credentials are invalid.
    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)
  10. docs/auditlog/auditlog-echo.go

    }
    
    func mainHandler(w http.ResponseWriter, r *http.Request) {
    	body, err := io.ReadAll(r.Body)
    	defer r.Body.Close()
    	if err != nil {
    		log.Printf("Error reading request body: %v", err)
    		w.WriteHeader(http.StatusBadRequest)
    		return
    	}
    
    	log.Printf(">>> %s %s\n", r.Method, r.URL.Path)
    	var out bytes.Buffer
    	json.Indent(&out, body, "", "    ")
    	log.Printf("%s\n", out.String())
    
    	w.WriteHeader(http.StatusOK)
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 21:31:13 GMT 2024
    - 1.5K bytes
    - Viewed (0)
Back to top