■ Chaos Testing
Test how your system reacts when an API fails — before it happens in production.
Chaos Mode injects configurable latency and errors into any route on your mock, without touching your system's code. Find out if your timeout, retry, and fallback actually work.
Untested resilience
- Timeout, retry, and circuit breaker configured, but never actually exercised
- The first time your system meets a slow or down API is in production
- Simulating failure manually means taking down a real service — risky and tedious
- No easy way to test "what if this specific call fails 15% of the time?"
With httpdrop Chaos Mode
- Configurable latency per route — simulate a slow API on demand
- Configurable error rate — a chosen % of calls return whatever status you pick
- Toggle per route, without affecting the endpoint's other rules
- Combines with normal Mock Rules — the rest of the contract keeps working as expected
- Reversible at any time, zero risk to any real system
How it works
1
Pick the route
Any Mock Rule can have Chaos Mode enabled individually.
2
Configure latency
Set a fixed delay or a range, in milliseconds.
3
Configure error rate
Choose the percentage of calls that should fail, and with which status.
4
Run your test or suite
Point your system or your automated tests at the route with chaos enabled.
5
Observe the real behavior
Does the timeout fire? Does retry work? Does the fallback kick in? Now you know, before an incident.
Example — 15% error rate + 800ms delay
// Chaos Mode on GET /payments/{id}
{
"latencyMs": 800,
"errorRate": 0.15,
"errorStatus": 503
}
// The other 85% of calls follow the normal Mock Rule
What httpdrop Chaos Testing is
- Fault injection at the mock layer — controlled, reversible, isolated per route
- A fast way to validate timeout, retry, and fallback before production
What it isn't
- Not fault injection into real production infrastructure (real running services are never affected)
- Not a replacement for a full chaos-engineering game day against real systems
Use cases
Validate retry and timeout
Confirm your retry logic actually handles a slow or unstable API.
Resilience tests in CI
Run your test suite automatically against a dependency simulating failure.
Game day prep
Rehearse external dependency failure scenarios before a real chaos exercise.
FAQ
Does this affect my production API?
No — Chaos Mode only acts on httpdrop's own simulation layer, never on real systems.
Can I combine it with a normal Mock Rule?
Yes — calls that don't fall into the error rate follow the configured response as usual.
Can I turn it on and off quickly?
Yes — it's a per-route setting, without affecting the rest of the endpoint.
Related resources
Start testing resilience now
Configurable latency and errors per route, without touching your system's code.
Create free account