#379: return 500 on not-exist public file path
Merge remote-tracking branch 'origin/master' into issue_379
a simpler patch