AJAX error handler

fix https://github.com/Project60/sepa_dd/issues/183