Will be nice if the response of a global error thrown by the library respect the media type provided by Accept header.
This is when error is thrown to a browser (Accept: text/html) error is rendered like now but if it's thrown to the API client (Accept: application/*json) return application/problem+json response.
Originally posted by @Maks3w at zfcampus/zf-rest#72