-
Hi, I am using a middleware where I detect if the page title contains Page not found. The page itself does not return a 404. How do I stop requests from reaching the request handler? |
Beta Was this translation helpful? Give feedback.
Answered by
B4nan
May 27, 2023
Replies: 1 comment 1 reply
-
The router middleware is implemented as part of the request handler, so technically you are already there. You could try throwing |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
harshmaur
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The router middleware is implemented as part of the request handler, so technically you are already there. You could try throwing
NonRetryableError
error.