created ErrorHandler service for Ajax errors