| Previous | Next |
| STATUS_CONNECTION_REFUSED | STATUS_ADDRESS_ALREADY_ASSOCIATED |
STATUS_GRACEFUL_DISCONNECT
The peer closed the connection in an orderly way
A graceful disconnect reflects orderly transport shutdown rather than an abrupt reset. Preserve whether pending data was drained and which side initiated closure before classifying it as a fault.
This status indicates an orderly shutdown rather than corruption or reset. It is important when deciding whether to retry, report EOF, or treat the event as normal protocol termination.
What to inspect
- Check whether the protocol allows the peer to finish the stream.
- Do not classify this as packet loss by itself.
- Inspect application-layer close messages before raising an error.
References for STATUS_GRACEFUL_DISCONNECT
Looking for a different code? Search another status or error code.
