Pluggable exception handling and rendering