// Check whether no. of args are valid for XL distribution.
if!isValidDistribution(len(args)){
returnnil,fmt.Errorf("total endpoints %d found. For XL/Distribute, it should be 4, 6, 8, 10, 12, 14 or 16",len(args))
returnnil,fmt.Errorf("A total of %d endpoints were found. For erasure mode it should be an even number between %d and %d",len(args),minErasureBlocks,maxErasureBlocks)
{[]string{"d1","http://localhost/d2","d3","d4"},fmt.Errorf("mixed style endpoints are not supported")},
{[]string{"http://example.org/d1","https://example.com/d1","http://example.net/d1","https://example.edut/d1"},fmt.Errorf("mixed scheme is not supported")},