I use django rest framework to make API server. DRF catches some Django exceptions and transforms them in JSON. However some exceptions, like 404, are still returned as Django pages (at least it works that way on my machine). How can I wrap all exceptions in JSON from any library? I'm working on mobile app and I can't debug html dumps from Django in console :(
Am I missing something important?