Raise exceptions on bad HTTP status codes

This makes codecov complain a little louder