modification: test for status code