Errors in a stream
An error found before the first event comes back as an ordinary JSON error with its real status, so your SDK raises it as usual. See Errors. An error after the stream has started cannot change the status, which was already sent. It arrives as anerror event, with the same body an ordinary error would have:
event: error and stop.