We need to wait for the body to close before we read all of it, otherwise we can get an EOF error for long codes (or slow connections).