statusCode

Check the HTTP response status code. Every HTTP API returns a numeric status code — 200 means OK, 201 means created, 404 means not found, and so on.

This is the most common assertion for HTTP tests. If you only check one thing, this is usually it.

assertions:
  - statusCode:
      equals: 200
Only works with executor: http tests. For CLI tests, use exitCode instead.