godog-http-api
Browse docs
    • Introduction
    • Quick Start
    • Overview
    • Next steps
    • Environment variables
    • CLI: godog
    • CLI: go
    • Debugging
    • Create your own steps
      • Random boolean
      • Random number from the range
      • Random sentence from provided charset and range
      • Random word from provided charset and range
      • Time object
      • Sending request using multiple steps
      • Sending request using single step.
      • Pause for given period of time.
      • Stop scenario execution.
      • HTTP response body
      • HTTP response body nodes
      • HTTP response headers
      • HTTP response status code
      • Activate/deactivate debug mode.
      • Print last response body.
      • Print scenario cache data.
      • Save arbitrary inline data.
      • Save arbitrary multiline data.
      • Save data from headers.
      • Save data from last response body.
    • Cache
    • Debugger
    • Formatters
    • PathFinders
    • RequestDoer
    • SchemaValidators
    • TemplateEngine
    • TypeMappers

godog-http-api

  • Docs
  • Blog
  • Get Started
    • Quick Start
    • Tutorial


  • GitHub

    • Introduction
    • Quick Start
    • Overview
    • Next steps
    • Environment variables
    • CLI: godog
    • CLI: go
    • Debugging
    • Create your own steps
      • Random boolean
      • Random number from the range
      • Random sentence from provided charset and range
      • Random word from provided charset and range
      • Time object
      • Sending request using multiple steps
      • Sending request using single step.
      • Pause for given period of time.
      • Stop scenario execution.
      • HTTP response body
      • HTTP response body nodes
      • HTTP response headers
      • HTTP response status code
      • Activate/deactivate debug mode.
      • Print last response body.
      • Print scenario cache data.
      • Save arbitrary inline data.
      • Save arbitrary multiline data.
      • Save data from headers.
      • Save data from last response body.
    • Cache
    • Debugger
    • Formatters
    • PathFinders
    • RequestDoer
    • SchemaValidators
    • TemplateEngine
    • TypeMappers
    • Introduction
    • Quick Start
    • Overview
    • Next steps
    • Environment variables
    • CLI: godog
    • CLI: go
    • Debugging
    • Create your own steps
      • Random boolean
      • Random number from the range
      • Random sentence from provided charset and range
      • Random word from provided charset and range
      • Time object
      • Sending request using multiple steps
      • Sending request using single step.
      • Pause for given period of time.
      • Stop scenario execution.
      • HTTP response body
      • HTTP response body nodes
      • HTTP response headers
      • HTTP response status code
      • Activate/deactivate debug mode.
      • Print last response body.
      • Print scenario cache data.
      • Save arbitrary inline data.
      • Save arbitrary multiline data.
      • Save data from headers.
      • Save data from last response body.
    • Cache
    • Debugger
    • Formatters
    • PathFinders
    • RequestDoer
    • SchemaValidators
    • TemplateEngine
    • TypeMappers

On this page

HTTP response status code

HTTP response status code.

On this page

the response status code should (not )?be (\d+) #

This step checks against last HTTP(s) response status code.

Examples:

Then the response status code should be 201
But the response status code should not be 200
← HTTP response headers
Introduction →
  • Powered by Netlify, Hugo, and Doks