Introduce circuit breaker middleware

Circuit breaker watches the error condtion to match, after what it activates the fallback scenario, e.g. returns the response code.
Renaming suggestion: I think something like `setDefaults` would make it more clear what this function does. I would also remove the `error` return value.