fixed response code check