handle the HTTP 404 error while fetching posts