add response status check