Req response and error steps that track successes and failures in the circuit breaker.
Summary
Functions
Req error step. Records transport and parsing errors as failures.
Req response step. Records successes and failures based on the HTTP status code. 2xx statuses are recorded as successes. 429 and 5xx statuses are recorded as failures. All other statuses (e.g., 400, 401, 404) are ignored by the circuit breaker logic because they typically represent client errors, not service outages.
Functions
Req error step. Records transport and parsing errors as failures.
Req response step. Records successes and failures based on the HTTP status code. 2xx statuses are recorded as successes. 429 and 5xx statuses are recorded as failures. All other statuses (e.g., 400, 401, 404) are ignored by the circuit breaker logic because they typically represent client errors, not service outages.