fix(error-handling): ensure authHeaders are updated on error responses if token headers are provided

I had originally opened this issue under devise_token_auth (see also: https://github.com/lynndylanhurley/devise_token_auth/issues/46), but this seems like something that should happen regardless of if the server chooses to update tokens during error responses.