Status Assertions (Expect API)
Validate precise HTTP response statuses directly.
Available Matchers
toBe(expected: number)
Asserts that the HTTP status matches the exact expected number.
ts
toBeOneOf(list: Array<number>)
Asserts that the status is contained within the allowed array.
ts
toBeGreaterThan(num) / toBeLessThan(num)
Numeric boundary assertions for the HTTP status.
ts
toBeBetween(min, max)
Asserts the status falls inclusively within the range.
ts
Category Matchers
Quick semantic checks for overarching categories (2xx, 3xx, 4xx, 5xx).
ts
Semantic Strict Matchers
Human-readable strict equality matchers for common codes.
ts