error handler in place and output can be custom
pruning
add exception for invalid error template config