Rewrite AjaxApi so errors are actually propogated