Your question is HTTP Status Codes in API Testing. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
Explain the significance of specific HTTP status codes in API testing and how you verify them in automation. Cover how status codes such as 200, 201, 204, 400, 401, 403, 404, 409, 429, and 500 affect test expectations. Explain how you distinguish a valid response from an API defect and how you assert status codes alongside response headers, body, and error behavior. You may use any automation language or framework, but keep the answer focused on REST API testing and maintainable automated checks.