Verify HTTP status codes for API responses
Preconditions (2)
Step 1: Send a GET request to the API endpoint https://jsonplaceholder.typicode.com/posts/1
Step 2: Observe the HTTP status code in the response
Step 3: Send a GET request to the API endpoint https://jsonplaceholder.typicode.com/posts/invalid
Step 4: Observe the HTTP status code in the response
✅ Expected Result: The first request returns status code 200 OK, the second request returns status code 404 Not Found