convert failed delegatedStatsService lookup to json error response