Check response code of requests