Return a 404 if the file is not found, rather than returning an empty
page and logging the error in the php error log file. The error is no
longer logged in the error log, to find this error look for the 404
status code in the access log.
Return a 400 if the document name is invalid.
Allow "." is base name in tutorial/docwrapper.php3.