Optionalmessage: stringReadonlynameOptional ReadonlystatusHTTP status code of the rejected connection attempt, if known.
Only set when the EventSource implementation exposes it — the eventsource
package used by the client does (as code on its error events), while
native EventSource implementations (browser and Node.js) do not.
Thrown when the EventSource connection could not be established, or was rejected by the server. Transient failures (network drops, 5xx, 408, 429) are reconnected internally and emitted as
reconnectevents; a permanent rejection (any other 4xx, eg an expired token) errors the stream with this class so consumers can react — checkstatusfor the rejection code.