[minor] Added `.notFound` and `.error` handlers to bailing out of page generation.