Forum Discussion

mgroen2's avatar
mgroen2
Super Contributor
8 years ago
Solved

How to assert on HTTP response code?

I am learning how to write assertions on a REST API , and the responses are Json messages.   Now, I would like to create an assertion on the HTTP response code, so I can check if the request is acc...
  • HKosova's avatar
    8 years ago

    SoapUI has two assertion for status codes, Valid HTTP Status Codes and Invalid HTTP Status Codes. Both are in the Compliance category. In your example you need to use Valid HTTP Status Codes.