failRequest

suspend fun failRequest(args: Fetch.FailRequestParameter, mode: CommandMode = CommandMode.DEFAULT)

Causes the request to fail with specified reason.


suspend fun failRequest(requestId: String, errorReason: Network.ErrorReason)

Causes the request to fail with specified reason.

Parameters

requestId

An id the client received in requestPaused event.

errorReason

Causes the request to fail with the given reason.