Pass failing operation to failure(NSError*) block.

This allows upstream error handling to access e.g. the original request or response headers and body.