recordFailure

Configures a predicate to record the response of a call. The predicate should return true if the response is to be considered a failure; false otherwise.