Set mime type on error responses.