httptesting: add ExpectError parameter

This allows us to check Do error conditions.