[JENKINS-19456] Improved sending response codes.
[JENKINS-19456] There is a case that a zip file does not contain entries for directories.