pages: 404 exception handling

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>