<!-- IMPORTANT: Please use the following link to create a new issue: https://new-issue.vuejs.org/?repo=vuejs/vue-router If your issue was not created using the app above, it will be closed immediately. --> Is there a feature to detect a 404 error in an API? For example, if the path is 404, return true and redirect to the homepage. const isNotFoundPath = router.checkNotFound('/test/404') // true