Support keep_expired_for and tolerate_expired for transient error handling

document extensions