only check response code if response came back