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
Merge pull request #987 from tshepang/diff

docs/narr/hooks.rst: some improvements