save statusCode if error

so you can do something like:

```javascript
  source.onerror = function (err) {
    if (err) {
      if (err.statusCode === 401 || err.statusCode === 403) {
        console.log('eventsource not authorized');
      }
    }
  };
```