HttpResponse.IsSuccessful
property · HttpResponse · cAlgo.API
DesktopCLICloud
Gets true if the response is successful, false otherwise.
Definition
public bool IsSuccessful {get;}
httpResponse.IsSuccessful: bool
Returns bool
Examples
var response = Http.Get("https://api.example.com/quotes/EURUSD");
Print("Request successful: {0}", response.IsSuccessful);
response = api.Http.Get("https://api.example.com/quotes/EURUSD")
api.Print(f"Request successful: {response.IsSuccessful}")