hurl/integration/tests_ok/assert_status_code.hurl
2022-11-11 14:25:00 +01:00

22 lines
451 B
Plaintext

GET http://localhost:8000/assert-status-code
HTTP 201
# Assert HTTP 1.0
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