     Promise.reject(error) if isError(error)
 
   handleErrorMessage: (error) =>
-    {statusText, data} = error.response if isObject(error.response)
+    {statusText, data} = error.response if isObjectLike(error.response)
 
     try
       msg = JSON.parse(statusText)


    error.response.statusMessage = msg

    unless isObject(data)
      try
        error.response.data = JSON.parse(data)
      catch e

some      = require 'lodash/some'
set       = require 'lodash/set'
every     = require 'lodash/every'
isError   = require 'lodash/isError'
isEmpty   = require 'lodash/isEmpty'
propertyOf  = require 'lodash/propertyOf'
isObjectLike = require 'lodash/isObjectLike'

makeLocalRequest = (requestConfig) ->
  {url} = requestConfig
