Test for 5XX responses from server & raise if necessary
Merge pull request #28 from sburns/fix-500-response

Test for 5XX responses from server & raise if necessary