Handle HTTP response status codes better

The Web API sometimes responds with a 100 (continue) HTTP code. The current situation doesn't handle that well. That's why we now use the status code that curl provides.
Merge pull request #12 from hvt/patch-1

Handle HTTP response status codes better