func (t errorTransport) RoundTrip(request *http.Request) (*http.Response, error) {
	resp, err := t.transport.RoundTrip(request)
	if err != nil {
		return resp, errors.Trace(err)
	}
	if resp.StatusCode < 400 {
		return resp, nil
	}
	logger.Tracef("errorTransport %q, err -> %v", request.URL, err)
	return handleErrorResponse(resp)
}
// RoundTrip executes a single HTTP transaction, returning a Response for the provided Request.
RoundTrip executes a single HTTP transaction, returning a Response for the provided Request.
// RoundTrip executes a single HTTP transaction returning a Response for the provided Request .
func (t errorTransport) RoundTrip(request *http.Request) (*http.Response, error) {
	resp, err := t.transport.RoundTrip(request)
	if err != nil {
		return resp, errors.Trace(err)
	}
	if resp.StatusCode < 400 {
		return resp, nil
	}
	logger.Tracef("errorTransport %q, err -> %v", request.URL, err)
	return handleErrorResponse(resp)
}
func ( t errorTransport ) RoundTrip ( request * http . Request ) ( * http . Response , error ) { resp , err := t . transport . RoundTrip ( request ) if err != nil { return resp , errors . Trace ( err ) } if resp . StatusCode < 400 { return resp , nil } logger . Tracef ( " " , request . URL , err ) return handleErrorResponse ( resp ) }
RoundTrip executes a single HTTP transaction, returning a Response for the provided Request.
RoundTrip executes a single HTTP transaction returning a Response for the provided Request .