Adds onerror proxy option

Status: **Opened for visibility**
Reviewers: **@donnielrt**

## Changes
- adds a proxy function for XHR.onerror

## To do
- [ ] write tests
- [ ] update README