support enriched remote api error object.