Fixed extraction of empty files

Fixes #1310
Sending custom HTTP status codes to prevent conflicts

Fixes #1308
Merge branch 'master' of github.com:WoltLab/WCF