I was just buzzing around Postman, sending requests, and found something odd: the API returned 200 OK, but the body screamed error!
Type of testing: Endpoint Testing
Status: code 200
Step to Reproduce (Mock Server):
- Create a Mock Server in Postman.
- Add endpoint:
GET /orders?customerId=123. - Define 3 responses, all with status 200 OK:
- Success â
status: confirmed - Fail â
status: error - Edge Case 200 OK â Invalid Quantity
- Success â
Added screenshot of request & response
Success â status: confirmed

Fail â status: error

Edge Case 200 OK â Invalid Quantity


Technical Concept:
- Endpoint testing = validate status code + body + headers.
- A 200 OK doesnât always mean success.
- Always test for:
- Error codes in body
- Required fields
- Business rules (like positive quantity)
What This Shows:
- Status code 200 OK does not always mean success
- The API may return errors inside the response body
- You must validate both status code and response content
 Pro Tips:
- Always check the response body, not just the status
- Validate error fields even when status is 200
- Include negative test cases in your endpoint testing
- Automate checks for status + body consistency
Lesson:
“200 OK doesnât always mean OK. Sometimes it just means: âI answered⊠but badly.â