checking status code