Updated response codes for non-exist files to return 404 instead of 500