Handle HTTP errors, avoid adding duplicates to DB