exceptions.TransportError

The link to the service failed at connect, in TLS, by disconnect or by timeout.

Usage

Source

exceptions.TransportError(
    message,
    /,
    *,
    backend=None,
)

It is the only error that closes the connection. A 504 is a ProviderError, because the service returned it. See ADR-0004.