django-ninja
django-ninja copied to clipboard
Add exception `MethodNotAllowedError` and handler for it
Instead of a direct answer from the b"Method not allowed", I propose to process the resulting exception, like other exceptions.
Added a MethodNotAllowedError
error, as well as a handler for this error.
It would be nice in your pull request to have a description of the changes that have taken place.
This feature is required. I am waiting too.