Members


<inner> Then we expect to fail with response code {int}

Description

Ensures there is a pending error and the HTTP response indicates the specified code

Parameters
Name Type Description
code int

specified the expected code as an integer

Examples
Then we expect to fail with response code 404

<inner> Then we expect the response code to be {int}

Description

Ensures that the HTTP response indicates the specified code

Examples
Then we expect the response code to be 404

<inner> Then we expect the {word} not to be modified

Description

Ensures the HTTP response indicates that the resource is not modified (HTTP response code 304)

Parameters
Name Type Description
_ word

placeholder for increased readability

Examples
Then we expect the Book not to be modified

<inner> Then we expect the access to be forbidden

Description

Ensures the HTTP response indicates missing authorization to access the previous resource (HTTP response code 401)

Examples
Then we expect the access to be forbidden

<inner> Then we expect to be not authorized

Description

Ensures the HTTP response indicates the access to the previous resource is forbidden (HTTP response code 403)

Examples
Then we expect to be not authorized

<inner> Then we expect the {word} is missing

Description

Ensures the HTTP response indicates the previously accessed resource is missing (HTTP response code 404)

Parameters
Name Type Description
_ word

placeholder for increased readability

Examples
Then we expect the book is missing

<inner> Then we expect that the operation is not allowed

Description

Ensures the HTTP resource indicates it is not allowed to use the previous method (HTTP response code 405)

Examples
Then we expect that the operation is not allowed

<inner> Then we expect the precondition to fail

Description

Ensures the HTTP resource indicates the precondition is not met (HTTP response code 412)

Examples
Then we expect the precondition to fail