All jobs / QA / manual tester / API Testing

QA / manual tester interview question · 0–1 years

An endpoint returns 400 for one request and 500 for another. What does that difference tell you?

The strongest answer

4xx says the request was wrong, so my data or the client is at fault; 5xx says the server broke while handling it, which is a defect even when my input was nonsense

Why it works

Right — and the corollary matters: a server that answers bad input with a 500 is still a bug, because it should reject it as 4xx.

What a good answer covers

Answers that fall short

Who gets asked this

More API Testing questions