HTTP Response
HTTP Response Assertion
Bard natively supports out of the box the following HTTP responses
Then
.Response
.ShouldBe
.Ok();
// OR
Then
.Response
.ShouldBe
.Forbidden();
If you need to Assert another HTTP code was returned then you can specify the HTTP code as well.
Then
.Response
.ShouldBe
.StatusCodeShouldBe(HttpStatusCode.Ambiguous);