Add a bunch of network request error checking