1005
WebSocket

1005 No Status Received

A reserved value that indicates no status code was present in the Close frame. This code must not be set by an endpoint when sending a Close frame.

当您看到此代码时

The peer closed the connection with a Close frame that contained no status code payload. Your WebSocket library surfaces 1005 as a sentinel to indicate the absence of a code.

如何修复

This is an internal indicator, not a wire protocol value. If you see it frequently, the remote peer may have a bug where it sends empty Close frames — check the peer's implementation.

与之对比

指南

术语表