handle 307 and other strange responses on Azure