handle http error when checking link validity