Use real errors in ajaxError
Common function for getting error info from a jqxhr