Creating a content-based Error Handler for Zend Expressive