fix status code check for url request