How can I fail server replay if the requests do not match?

Hi,

I’m looking to use recorded flow to mock a service on a CI server, so I’d like to run mitmdump in server replay mode. How can I get mitmdump to fail and return an error in the following scenarios?

  • a request comes in the wrong order
  • an unexpected request is received
  • no more requests come but the recording still has some left to respond to (timeout)

Thanks!