add ttl for failed and successful responses