NETWORK NOTES
Sort errors by connection stage
A lookup error, connection timeout and HTTP error describe failures at different stages.
Preserve the first error
Save the exact message before retrying. A later response may come from a different address or follow a redirect, even when the original URL was the same.