setShouldFail
abstract suspend fun setShouldFail(connection: MockzillaConnectionConfig, keys: Collection<EndpointConfiguration.Key>, shouldFail: Boolean?): Result<Unit>
Overrides whether the specified endpoints return error responses on the device at connection.
Return
Result.success on success, Result.failure if the request could not be completed.
Parameters
connection
The device to target.
keys
The keys of the endpoints to update.
shouldFail
true to force error responses, false to force success responses, null to reset to each endpoint's configured default.