Dealing with 404 errors when getting a response