Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for apierrors (0.08 sec)

  1. cmd/object-handlers_test.go

    		t.Fatalf("[%s] Failed to unmarshal NewMultipartUpload response <ERROR> %v", instanceType, err)
    	}
    
    	noAPIErr := APIError{}
    	missingDateHeaderErr := getAPIError(ErrMissingDateHeader)
    	internalErr := getAPIError(ErrBadRequest)
    	testCases := []struct {
    		fault       Fault
    		expectedErr APIError
    	}{
    		{BadSignature, missingDateHeaderErr},
    		{None, noAPIErr},
    		{TooBigDecodedLength, internalErr},
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 20:10:44 UTC 2024
    - 163.2K bytes
    - Viewed (0)
  2. cmd/admin-handlers.go

    	// is not found the call will fail anyways. if token is empty
    	// try this server to generate a new token.
    
    	type healResp struct {
    		respBytes []byte
    		apiErr    APIError
    		errBody   string
    	}
    
    	// Define a closure to start sending whitespace to client
    	// after 10s unless a response item comes in
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 99.7K bytes
    - Viewed (0)
  3. cmd/bucket-replication.go

    // It also returns true if replication destination is same as this server.
    func validateReplicationDestination(ctx context.Context, bucket string, rCfg *replication.Config, opts *validateReplicationDestinationOptions) (bool, APIError) {
    	if opts == nil {
    		opts = &validateReplicationDestinationOptions{}
    	}
    	var arns []string
    	if rCfg.RoleArn != "" {
    		arns = append(arns, rCfg.RoleArn)
    	} else {
    		for _, rule := range rCfg.Rules {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 06:49:55 UTC 2024
    - 116.1K bytes
    - Viewed (0)
  4. cmd/object-handlers.go

    		// If not set, convert or use BadRequest
    		if s3Err == ErrNone {
    			apiErr = toAPIError(ctx, err)
    			if apiErr.Code == "InternalError" {
    				// Convert generic internal errors to bad requests.
    				apiErr = APIError{
    					Code:           "BadRequest",
    					Description:    err.Error(),
    					HTTPStatusCode: http.StatusBadRequest,
    				}
    			}
    		}
    		writeErrorResponse(ctx, w, apiErr, r.URL)
    		return
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
Back to top