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.