Question · NestJS course · Module 2: Routing and Request Lifecycle
Guard Rejects a Request - What Happens?
What happens when a Guard rejects a request (returns false)? Which pipeline elements will NOT execute?
Answer options
- Only the Handler won't execute
- Interceptors, Pipes, and Handler won't execute
- Everything will execute, but with an error
- Middleware will roll back the request
Show the answer
Correct answer:
- Interceptors, Pipes, and Handler won't execute