Handle NotFound raised by the framework
There are two different NotFound exception: one specific to the
application, and one raised by the framework when trying to access url
which does not have a handler.
The first one is working well, the second wasn't handled and instead was
actually being set as 500 (even though the response body talked about
404).