assert with status codes