hurl/integration/tests_ok/assert_status_code.hurl
jcamiel daa5e5ebd4
Update werkzeug from 2.0.3 to 2.2.3
This update solves security issue but bumps HTTP Flask version from HTTP/1.0 to HTTP/1.1.
2023-02-17 00:58:41 +01:00

22 lines
451 B
Plaintext

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