Added response and xhr args to error handlers