HTTP
A HTTP Fault describes the characteristics of the faults to be injected in the HTTP requests served by a target.
A HTTP fault is described by the following attributes:
Note
averageDelayanddelayVariationare applied to all requests affected by the fault, regardless of the value oferrorRate.errorCodeis returned only to a fraction of requests defined byerrorRate.
Example
This example defines a HTTP fault that introduces a delay of 50ms in all requests and returns an error code 500 in 10% of the requests.
const fault = {
averageDelay: '50ms',
errorCde: 500,
errorRate: 0.1,
};

