mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-27 16:26:40 +03:00
17 lines
413 B
Plaintext
17 lines
413 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 not equals 200
|
|
|
|
|
|
# simply check that the status code is OK
|
|
GET http://localhost:8000/assert-status-code
|
|
HTTP/* *
|
|
[Asserts]
|
|
status greaterThanOrEquals 200
|
|
status lessThan 300 |