Change the default handler to generate error response on text/html,
application/xml and application/json