← Quiz: Validation and Errors: all 10 questions
Quiz: Validation and Errors · Question 9 of 10
What should a client receive when your code hits an unexpected bug?
What should a client receive when your code hits an unexpected bug?
- A.200 OK with the stack trace
- B.400 Bad Request
- C.500, with the details logged on the server and no stack trace in the response
- D.409 Conflict
Answer & explanation
Correct answer: 500, with the details logged on the server and no stack trace in the response
Stack traces and SQL in responses leak internal details to attackers.
Can you get the rest right without peeking?
Take the timed Quiz: Validation and Errors quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →