HttpClient Handling proper statuscode.