Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for StatusNoContent (0.42 sec)

  1. cmd/post-policy_test.go

    		{http.StatusNoContent, credentials.SecretKey, map[string]string{"AWSAccessKeyId": credentials.AccessKey}},
    		{http.StatusForbidden, credentials.SecretKey, map[string]string{"Awsaccesskeyid": "invalidaccesskey"}},
    		{http.StatusForbidden, "invalidsecretkey", map[string]string{"Awsaccesskeyid": credentials.AccessKey}},
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  2. cmd/bucket-policy-handlers_test.go

    			policyLen:          len(fmt.Sprintf(bucketPolicyTemplate, bucketName, bucketName)),
    			accessKey:          credentials.AccessKey,
    			secretKey:          credentials.SecretKey,
    			expectedRespStatus: http.StatusNoContent,
    		},
    		// Test case - 2.
    		// Setting the content length to be more than max allowed size.
    		// Expecting StatusBadRequest (400).
    		{
    			bucketName:         bucketName,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  3. cmd/object-lambda-handlers.go

    	"Created":                         http.StatusCreated,
    	"Accepted":                        http.StatusAccepted,
    	"Non-Authoritative Information":   http.StatusNonAuthoritativeInfo,
    	"No Content":                      http.StatusNoContent,
    	"Reset Content":                   http.StatusResetContent,
    	"Partial Content":                 http.StatusPartialContent,
    	"Multi-Status":                    http.StatusMultiStatus,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  4. cmd/server_test.go

    	response3, err := s.client.Do(request)
    	c.Assert(err, nil)
    	// expecting the response status code to be http.StatusNoContent.
    	// The assertion validates the success of Abort Multipart operation.
    	c.Assert(response3.StatusCode, http.StatusNoContent)
    }
    
    // TestBucketMultipartList - Initiates a NewMultipart upload, uploads parts and validates listing of the parts.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 115.3K bytes
    - Viewed (0)
  5. cmd/bucket-lifecycle-handlers_test.go

    			accessKey:          creds.AccessKey,
    			secretKey:          creds.SecretKey,
    			bucketName:         bucketName,
    			body:               []byte(``),
    			expectedRespStatus: http.StatusNoContent,
    			lifecycleResponse:  []byte(``),
    			errorResponse:      APIErrorResponse{},
    			shouldPass:         true,
    		},
    		{
    			method:             http.MethodGet,
    			accessKey:          creds.AccessKey,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  6. cmd/bucket-handlers_test.go

    	// Call the ServeHTTP to execute the handler.
    	apiRouter.ServeHTTP(rec, req)
    	switch rec.Code {
    	case http.StatusOK, http.StatusCreated, http.StatusAccepted, http.StatusNoContent:
    		t.Fatalf("Test %v: expected failure, but succeeded with %v", instanceType, rec.Code)
    	}
    
    	// Verify response of the V2 signed HTTP request.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 39.8K bytes
    - Viewed (0)
  7. internal/rest/client.go

    	var respTrace []byte
    
    	// For errors we make sure to dump response body as well.
    	if resp.StatusCode != http.StatusOK &&
    		resp.StatusCode != http.StatusPartialContent &&
    		resp.StatusCode != http.StatusNoContent {
    		respTrace, err = httputil.DumpResponse(resp, true)
    		if err != nil {
    			return
    		}
    	} else {
    		respTrace, err = httputil.DumpResponse(resp, false)
    		if err != nil {
    			return
    		}
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  8. internal/logger/target/http/http.go

    	}
    
    	// Drain any response.
    	xhttp.DrainBody(resp.Body)
    
    	switch resp.StatusCode {
    	case http.StatusOK, http.StatusCreated, http.StatusAccepted, http.StatusNoContent:
    		// accepted HTTP status codes.
    		return nil
    	case http.StatusForbidden:
    		return fmt.Errorf("%s returned '%s', please check if your auth token is correctly set", h.Endpoint(), resp.Status)
    	default:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jun 02 03:03:39 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  9. cmd/admin-handlers-site-replication.go

    			if time.Since(connectTime) < (globalNetPerfMinDuration - time.Second) {
    				adminLogIf(ctx, err)
    			}
    		}
    		if err != nil {
    			if errors.Is(err, io.EOF) {
    				w.WriteHeader(http.StatusNoContent)
    			} else {
    				w.WriteHeader(http.StatusBadRequest)
    			}
    			break
    		}
    	}
    }
    
    // SiteReplicationNetPerf - everything goes to io.Discard
    // [POST] /minio/admin/v3/site-replication/netperf
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  10. cmd/api-response.go

    	writeResponse(w, http.StatusOK, response, mimeXML)
    }
    
    // writeSuccessNoContent writes success headers with http status 204
    func writeSuccessNoContent(w http.ResponseWriter) {
    	writeResponse(w, http.StatusNoContent, nil, mimeNone)
    }
    
    // writeRedirectSeeOther writes Location header with http status 303
    func writeRedirectSeeOther(w http.ResponseWriter, location string) {
    	w.Header().Set(xhttp.Location, location)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 33.5K bytes
    - Viewed (0)
Back to top