code: func isSuccessHTTPResponse(resp *http.Response) bool {
  	if resp == nil {
  		return false
  	}
  
  	// HTTP 2xx suggests a successful response
  	if 199 < resp.StatusCode && resp.StatusCode < 300 {
  		return true
  	}
  
  	return false
  }
docs: // isSuccessHTTPResponse determines if the response from an HTTP request suggests success