hurl/integration/tests_ok/assert_status_code.hurl

22 lines
451 B
Plaintext
Raw Normal View History

GET http://localhost:8000/assert-status-code
2022-11-11 16:25:00 +03:00
HTTP 201
# Assert HTTP 1.0
GET http://localhost:8000/assert-status-code
HTTP/1.0 201
2022-11-11 16:25:00 +03:00
# Simply check that the status code is not 200
# Do not run implicit assert of HTTP response version and code
GET http://localhost:8000/assert-status-code
2022-11-11 16:25:00 +03:00
HTTP *
[Asserts]
status != 200
2022-11-11 16:25:00 +03:00
# Simply check that the status code is OK
2020-11-21 12:04:45 +03:00
GET http://localhost:8000/assert-status-code
2022-11-11 16:25:00 +03:00
HTTP *
2020-11-21 12:04:45 +03:00
[Asserts]
status >= 200
status < 300