-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom 404 response #598
Comments
I retract this issue; I'm completely wrong on this. You can indeed use middlewares. I don't why I thought you couldn't. |
Although it could be good to document how to do this. Also, include simple middleware in aiohttp for handling this. Is this a contribution you'd be interested in? |
Yes, I'm interesting in docs contributions written by users and describing their problems. |
Perhaps I'm missing something, but there doesn't seem to be a way of customizing the 404 page except for writing your own router.
To clarify, I understand that you can customize manually raised 404s by using middlewares. I'm talking about a 404 triggered when the router cannot resolve a URL to a handler.
The text was updated successfully, but these errors were encountered: