Add 404 handling. Closes #6.