 
     error.response.statusMessage = msg
 
-    unless isObject(data)
+    unless isObjectLike(data)
       try
         error.response.data = JSON.parse(data)
       catch e

    Promise.reject(error) if isError(error)

  handleErrorMessage: (error) =>
    {statusText, data} = error.response if isObject(error.response)

    try
      msg = JSON.parse(statusText)

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
