Error handling

It might occur your target url doesn't respond the way it should. This is how we deal with it, depending on the HTTP status code we receive.