also detect a 404 error when polling and flag as error state correctly #299