Question · NestJS course · Module 2: Routing and Request Lifecycle

NotFoundException

What HTTP code does throwing new NotFoundException() generate in NestJS?

Answer options

  • 400 Bad Request
  • 403 Forbidden
  • 404 Not Found
  • 500 Internal Server Error
Show the answer

Correct answer:

  • 404 Not Found