Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
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
averageDelay
anddelayVariation
are applied to all requests affected by the fault, regardless of the value oferrorRate
.errorCode
is 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,
};