Skip to main content
Version: 5.11.8

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 = Backend.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