feat: errors render templates when user accents html or is ajax request