fix issue with header not being passed along in error requests