         async: true
         url: url
         complete: (jqXHR, textStatus) =>
-          callback(jqXHR.status) if callback
+          callback(jqXHR) if callback
     true
 
   ajaxPost: (url, data, callback) ->

        data: data
        url: url
        complete: (jqXHR, textStatus) =>
          callback(jqXHR.status) if callback
    true

  validateUser: (callback) ->
    @ajaxGet("#{@scheme}://#{@hostname}/games/#{@appId}/users.json?id=#{encodeURIComponent(@udid)}",
      (statusCode) =>
        switch statusCode
          when 200
            @status = Carrot.Status.Authorized
          when 401

    )

  callbackHandler: (callback) ->
    return (jqXHR) =>
      ret = Carrot.Status.Error
      switch jqXHR.status
        when 200
          ret = Carrot.Status.Ok
        when 201
