All jobs / QA / manual tester / API Testing

QA / manual tester interview question · 0–1 years

An API returns 200 with an error object in the body. What do you report?

The strongest answer

The contract mismatch: status, body, and what the client does with it — “200 + error” is a bug if the spec said 4xx, or a spec bug if it is intentional and undocumented

Why it works

Exactly. Status and body together are the contract. QA can say when they disagree.

What a good answer covers

Answers that fall short

Who gets asked this

More API Testing questions