code: function destructureClientError (error) {
    const { method, url } = error.config
    const { status, data } = error.response
    const reason = R.has('reason', data) ? data.reason : R.toString(data)
  
    return `${method.toUpperCase()} to ${url} failed with ${status}: ${reason}`
  }
docs: Destructure HTTP client `error`
  @rtype (error: Error) => String
  @param {Error} error
  @return {String}