QA Fundamentals · Middle · Question 39 of 75

What should be checked in an API error response besides the status code?

Show the answer

Correct answer: A clear, consistent error body without internal details

Explanation

Clients need a stable error format (code, message, fields). Stack traces, SQL or file paths leak internals and are a security finding.

Further reading

Problem with a question

QA Fundamentals · Middle · question 39

Test yourself

Take the QA Fundamentals · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz