API Testing · Junior · Question 10 of 75

A request with an invalid email returns 500. What is the problem?

Show the answer

Correct answer: Validation errors should be 4xx; a 500 means unhandled input

Explanation

Bad input is the client's fault and should return 400 or 422 with a clear message. A 500 usually means an exception wasn't caught.

Further reading

Problem with a question

API Testing · Junior · question 10

Test yourself

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

Take this quiz