gzip_cnc status codes
Status codes numbering
The numeric part of the status codes describes within which part of the program this status has been detected:
- 0x = main program
- 2x = sending a file content
- 4x = creating (or updating the content of) a cache file using the external compression program
gzip
- 5x = creating (or updating the content of) a cache file using the Perl module
Compress::Zlib
- 9x = running the script in self-test mode
Serving a content from the cache
In the following cases the content could be served in compressed form:
status code | meaning |
---|---|
01:OKAY |
The cache file did already exist. |
06:CREATED_ZLIB |
The cache file has been created successfully using the Perl module Compress::Zlib . |
07:CREATED_GZIP |
The cache file has been created successfully using the external compression program gzip . |
08:UPDATED_ZLIB |
The content of the corresponding cache file has been updated successfully using the Perl module Compress::Zlib . |
09:UPDATED_GZIP |
The content of the corresponding cache file has been updated successfully using the external compression program gzip . |
Serving the content from the original file
In the following cases the content could be served in uncompressed form from the original file only:
status code | meaning |
---|---|
03:NO_PATH_INFO |
The URL of the file to be served could not be determined. |
05:NO_ACCEPT_ENCODING |
The browser didn't allow serving compressed data. |
10:ORIGINAL_SMALLER |
The content of the original file has been smaller than the content of the cache file. |
21:FOPEN_FAILED_GZIP |
Opening the cache file has failed. |
41:PATHNAME_BROKEN |
The content of the Environment variable PATH_INFO could not be split into directory path and file name. |
42:MKDIR_FAILED |
Creating the required cache directory has failed. |
44:GZIPFILE_FAILED |
Compressing the content of the original file using the external compression program gzip has failed. |
45:RENAME_FAILED |
Renaming the compressed copy to the cache filename has failed; the copy has been removed. |
46:STAT_FAILED_CACHE |
Reading the attributes of the cache file just created has failed; the new cache file has been removed. |
51:FOPEN_FAILED |
Opening a zlib output file for compression has failed. |
52:ZLIBOPEN_FAILED |
Opening the output file via the Perl API Compress::Zlib has failed; the zlib output file has been removed. |
53:READ_FAILED |
Reading the content of the original file has failed; the zlib output file has been removed. |
Execution errors
In the following cases the original file content could neither be served in compressed nor in uncompressed form but an error handling had to be performed:
status code | meaning |
---|---|
04:STAT_FAILED_ORIGINAL |
Reading the attributes of the original file has failed - this can be as simple as the requested file does not exist. |
22:FOPEN_FAILED_ORIGINAL |
Opening the original file in read mode has failed (attempting to serve its content). |
Self test mode
In the following cases the program has been invoked by requesting its URL via HTTP:
status code | meaning |
---|---|
97:SELF_TEST_MISUSE |
Some visitor has tried to misuse the script for breaking security mechanisms of the Apache web server. (version 1.11 and up) |
98:SELF_TEST_DISABLED |
The self-test mode has been switched off via program configuration. |
99:SELF_TEST_OKAY |
The self-test has been executed normally. |
(Michael Schröpl, 2002-09-05)