check for 404 errors when querying the API