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

    )

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

          @status = Carrot.Status.ReadOnly
        when 404
          # No change to status, resource not found
          @status = @status
        when 405
          @status = Carrot.Status.NotAuthorized
        else
          @status = Carrot.Status.Unknown
      if callback
        return callback(ret)
      else
        return ret

  postAchievement: (achievementId, callback) ->
    @postSignedRequest("/me/achievements.json",
