NestJS · Junior · Question 35 of 75
What does Nest return if a handler throws a plain Error?
- 1The error message and stack trace with status 200
- ✓Correct answer: 500 Internal Server Error with a generic message
- 3400 Bad Request
Explanation
Unknown errors are not exposed to clients. Map expected cases to HttpExceptions, or write an exception filter.