Ensure that when no error has occured, error argument is null and that status is not applied
Correct test for error HTTP status code, and add XHR to returned error
When in error state, return everything on the error object and not on the other return arguments
Fix tests and implementation of form encoding headers