3.43Ensuring the request succeeds
Created on Aug 17, 2026~1 min read
When this feature is enabled, an exception is thrown automatically when the HTTP response status code is not in the 200-299 range (that is, when the IsSuccessStatusCode property is false).
HttpRequestBuilder.Post("https://furion.net/") .EnsureSuccessStatusCode();HttpRequestBuilder.Post("https://furion.net/") .EnsureSuccessStatusCode(false); // Disable validation