Skip to main content
1001

Going Away

Sent by: BothRetryable

1001 Going Away indicates the endpoint is 'going away' – a server is shutting down or restarting, or a browser tab is being closed. The connection was not completed abnormally, but the endpoint will not be available to continue. Clients receiving 1001 should attempt to reconnect after a delay.

Description

1001 is sent when the endpoint is shutting down gracefully but the client may wish to reconnect. Common scenarios: a server is being redeployed, a browser tab is navigating away, or a load balancer is draining connections before a restart. Unlike 1000, 1001 signals that the closure was forced by circumstance rather than task completion. Well-behaved clients implement exponential backoff reconnection on receiving 1001.

Common Causes

  • Server restart or deployment
  • Browser tab navigating away or closing
  • Load balancer draining connections
  • Server maintenance window starting

Code

1001

RFC

RFC 6455

Sent By

Both

Retry

Yes