pass error to notFound

this allows users to have notFound errors to be handled by the error handler