added example for serving a static file only if it exists
mention that the file method can return undef
fixed typo in example
added another example for error method
added examples for different transaction errors