NestJS · Junior · Question 35 of 75

What does Nest return if a handler throws a plain Error?

Explanation

Unknown errors are not exposed to clients. Map expected cases to HttpExceptions, or write an exception filter.

Further reading

Problem with a question

NestJS · Junior · question 35

Test yourself

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

Take this quiz