Skip to main content
Version: 6.0.0

IsSuccess

public bool IsSuccess();

Description

Checks whether the request succeeded or failed.

  • Returns as success if statusCode is in the range of 200.
  • Returns as failure if statusCode is 300 or above.

Example

var bro = Backnd.Coupon.UseCoupon("coupon code");
if(bro.IsSuccess() == false) {
// Request handled as failure
}

// Request handled as success

Return casess

When the request is successful
true

When the request fails
false