client: test assertStatusCode