docs/narr/hooks.rst: some improvements

* consistency fixes: "not found view" --> "Not Found View"
* use comparable code for Imperative and Declarative configuration
* remove unused import, HTTPForbidden