API Testing · Senior · Question 39 of 75

How should error responses be covered by contracts?

Show the answer

Correct answer: Contract the error format and codes clients rely on, not only success

Explanation

Clients branch on 409 or specific error codes. Changing them breaks clients as surely as changing a success field.

Further reading

Problem with a question

API Testing · Senior · question 39

Test yourself

Take the API Testing · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz