QA Fundamentals · Junior · Question 54 of 75

An API returns 500 when you send an empty name. What does that suggest?

Show the answer

Correct answer: The server didn't validate input and crashed instead of a 400

Explanation

Invalid input should get a 4xx response with a clear message. A 500 means an unhandled error on the server: a bug worth reporting.

Further reading

Problem with a question

QA Fundamentals · Junior · question 54

Test yourself

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

Take this quiz