-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Document/example for custom 404 and 405 #888
Copy link
Copy link
Closed
Description
Long story short
When using aiohttp to create RESTfull JSON interfaces, one needs to always return JSON, but currently there is no mention on how to do it. #598 refers to this.
Expected behaviour
I would expect to be able to set app.default_not_found and app.default_not_allowed or something easy to override default responses.
Actual behaviour
I need to create a middleware (maybe simple).
Steps to reproduce
Just create an app without routes and request a path.
Reactions are currently unavailable