es/utils/swagger.js
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}`
}
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}`
}
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 ( ) } ${ url } ${ status } ${ reason } ` }
Destructure HTTP client `error`
@rtype (error: Error) => String
@param {Error} error
@return {String}
Destructure HTTP client error