Server validation

When statuscode is not ok, failure, otherwise success