hurl/integration/tests_ok/assert_status_code.hurl
2022-04-01 14:43:11 +02:00

17 lines
381 B
Plaintext

GET http://localhost:8000/assert-status-code
HTTP/1.0 201
# 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
HTTP/* *
[Asserts]
status != 200
# simply check that the status code is OK
GET http://localhost:8000/assert-status-code
HTTP/* *
[Asserts]
status >= 200
status < 300