Checking for status code