fix issue#3: data: undefined and error: undefined on status_not_ok