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.
This function is small enough that I would inline it in `ProcessRequest`. Not a big deal either way, though.