code: func setCallStatus(s *awsxray.Segment, url, method string, err error) {
  	s.HTTP = getHTTP(url, method, err)
  
  	status := getStatus(err)
  	switch {
  	case status >= 500:
  		s.Fault = true
  	case status >= 400:
  		s.Error = true
  	case err != nil:
  		s.Fault = true
  	}
  }
docs: // setCallStatus sets the http section and related status