Optional ReadonlycodeB2 error code to return in the JSON body. Defaults to 'service_unavailable'.
Optional ReadonlycountNumber of matched requests to fail before the fault retires. Defaults
to Number.POSITIVE_INFINITY (every matched request fails until
cleared). Set to e.g. 3 to fail the next 3 matched requests then
stop.
Optional ReadonlymessageHuman-readable message. Defaults to 'simulated failure'.
ReadonlyonURL substring matched against request.url. The fault triggers on
every request whose URL contains this substring. Typically a B2
endpoint name like 'b2_upload_part', 'b2_authorize_account',
'b2_download_file_by_id', or '/file/' for download-by-name.
Optional ReadonlyretryIf set, the synthetic response includes a Retry-After: <n> header
(in seconds). Used to exercise the retry transport's
Retry-After-respecting backoff path.
Optional ReadonlyskipNumber of matched requests to let through before failures start.
Defaults to 0 (fail from the first matched request). Set to e.g.
2 to let the first 2 succeed and start failing on the 3rd.
Optional ReadonlystatusHTTP status to return. Defaults to 503.
Specification for a synthetic failure to return from the simulator's transport. See B2Simulator.injectFailure.