 // MARK: - Error Handling
 
 extension ServiceTask {
+    /// A closure type alias for an error-recovery handler.
+    public typealias ErrorRecoveryHandler = ErrorType -> ServiceTaskResult
+
     /**
     Add a response handler to be called if a request results in an error.
     

        return self
    }
    
    /**
     Add a handler that runs on the main thread and is responsible for updating 
     the UI with a given value. The handler is only called if a previous response 

// MARK: - Response API

extension ServiceTask {
    /// A closure type alias for a result transformation handler.
    public typealias ResultTransformer = Any? -> ServiceTaskResult

    /**
     Add a response handler to be called on background thread after a successful
     response has been received.
