Fixed checking of successful http status codes

Deze mergen vóór #3 ! @Nixweerd @TheN1ckname