(feat) add Function ErrorResponse variant [fixes #2]

I've also added an example file function.rs to demonstrate dynamic 404 pages