Contents

Status code

@stable

Background:

  • Given you expect HTTP status code "200"

Scenario: Different real response status

  • When real status code is "500"
  • Then Gavel will set some error for "status code"
  • And Request or Response is NOT valid

Scenario: Response status code match

  • When real status code is "200"
  • Then Gavel will NOT set any errors for "status code"
  • And Request or Response is valid

Source: features/expectations/status_code.feature at v2.0.0, Gavel (MIT license).