Add `smoke_assert_code` helper

Helper to assert that a URL had a certain response code.

fixes #2