Contribute Zulip's JsonableError framework to Django upstream
#975 opened on Jun 7, 2016
Description
Zulip has this nice JsonableError framework (defined in zerver/lib/request.py plus zerver/middleware.py) that can turn an exception thrown inside Zulip into a nice user-facing error message for all of our JSON routes. I think this would be a great feature to contribute to Django upstream, since it would help a lot of other developers as well. I talked to a Django core team member at PyCon, and he thought it would be a great addition but probably deserves a thread on the django-devel mailing list to make sure we get the right interface merged into mainline.
(We'd want to generalize this a bit to support other ways to marshall the data, and maybe think a bit more about making internationalization really nice, but I think this would be a great small contribution.)