code

Pcode
Bun

Symbol

CloseEvent.code

readonly code: number

Returns the WebSocket connection close code provided by the server.

MDN Reference