why not put the full the XHR object in addition to the status code?
```
new CAPIError("Connection error : " + XHR.status, {
    errorCode : XHR.status,
    xhr: XHR
})
```