Handle invalid uri relative path error with 404

Closes #13

LGTMs by:
* Michael
* Kevin