WebApp - error handler for ajax requests