Extract sleeping time between retries as constant
Decapitalize fmt.Errorf
Use bytes.Buffer instead slice of bytes