Add onerror callback to xhr request object
Throw an error if response status code is not OK
Merge pull request #2 from gmaclennan/xhr-error-catching

Add xhr error catching