Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for StatusBadRequest (0.14 sec)

  1. 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",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 03 07:17:20 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  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",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  3. 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: {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 92.1K bytes
    - Viewed (0)
  4. 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
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5K bytes
    - Viewed (0)
  5. 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.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 20:44:05 UTC 2024
    - 7.5K 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.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 32.9K 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 == "" {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 19 09:13:33 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  8. internal/http/response-recorder.go

    	}
    	n, err := lrw.ResponseWriter.Write(p)
    	lrw.bytesWritten += n
    	if lrw.ttfbBody == 0 {
    		lrw.ttfbBody = time.Now().UTC().Sub(lrw.StartTime)
    	}
    
    	if (lrw.LogErrBody && lrw.StatusCode >= http.StatusBadRequest) || lrw.LogAllBody {
    		// If body is > 10MB, drop it.
    		if lrw.bytesWritten+len(p) > 10<<20 {
    			lrw.LogAllBody = false
    			lrw.body = bytes.Buffer{}
    		} else {
    			// Always logging error responses.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 17:13:00 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  9. docs/iam/identity-manager-plugin.go

    package main
    
    import (
    	"encoding/json"
    	"errors"
    	"fmt"
    	"log"
    	"net/http"
    )
    
    func writeErrorResponse(w http.ResponseWriter, err error) {
    	w.WriteHeader(http.StatusBadRequest)
    	json.NewEncoder(w).Encode(map[string]string{
    		"reason": fmt.Sprintf("%v", err),
    	})
    }
    
    type Resp struct {
    	User               string                 `json:"user"`
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 01 21:31:13 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  10. cni/pkg/nodeagent/cni-watcher.go

    	})
    	return nil
    }
    
    func (s *CniPluginServer) handleAddEvent(w http.ResponseWriter, req *http.Request) {
    	if req.Body == nil {
    		log.Error("empty request body")
    		http.Error(w, "empty request body", http.StatusBadRequest)
    		return
    	}
    	defer req.Body.Close()
    	data, err := io.ReadAll(req.Body)
    	if err != nil {
    		log.Errorf("failed to read event report from cni plugin: %v", err)
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue Jul 02 18:48:50 UTC 2024
    - 6.7K bytes
    - Viewed (0)
Back to top