[#10][#11] Handle redirect

Minimal viable fix to bug in #10 and #11 where the request returns the html body of a redirect, which results in a TypeError when marshaled. 

The tests need to be improved and there's other room for improvement, but this works and is tested.