Better http error messages.
Redirect to documents list page and flash error when a document has not been found.