#379: return 500 on not-exist public file path

fix issue #379