add res.end(), if resource not found
Merge pull request #1 from tblasv/master

.end(... after sending error