Adds template for generic client-side error handler