Invalid credentals detection in anyfetch wrapper