Validates that a function throws an HTTP error with specific status codes.
Specialized error validator for HTTP operations. Validates that the
function throws an HttpError with one of the specified status codes. Useful
for testing API endpoints, authentication, and authorization logic.
Validates that a function throws an HTTP error with specific status codes.
Specialized error validator for HTTP operations. Validates that the function throws an HttpError with one of the specified status codes. Useful for testing API endpoints, authentication, and authorization logic.
Example
Throws
Error when function doesn't throw HttpError or status code doesn't match