 
         if statusCode is 400
           CurrentUserActions.logout()
+        # TODO eventually pull this out to the interceptors as well or remove if no longer needed
         else if statusMessage is 'parsererror' and statusCode is 200 and IS_LOCAL
           if httpMethod is 'PUT' or httpMethod is 'PATCH'
             # HACK for PUT

  date = headers['X-App-Date'] or headers['Date']
  TimeActions.setFromString(date)

setUpXHRInterceptors = ->
  axios.interceptors.request.use (requestConfig) ->
    AppActions.queRequest(requestConfig)
    requestConfig

  axios.interceptors.response.use (response) ->
    {status, statusText, config} = response
    AppActions.setServerSuccess(status, statusText, config)
    response

  , (errorResponse) ->


      opts = _.extend({}, opts, options)

      resolved = ({headers, data}) ->
        setNow(headers)
        successAction(data, args...) # Include listenAction for faking

      rejected = (response) ->
        # jqXhr, statusMessage, err
        statusCode = response.status
