3
* $Id: enums.h,v 1.254 2006/08/21 00:50:41 robertc Exp $
6
* SQUID Web Proxy Cache http://www.squid-cache.org/
7
* ----------------------------------------------------------
9
* Squid is the result of efforts by numerous individuals from
10
* the Internet community; see the CONTRIBUTORS file for full
11
* details. Many organizations have provided support for Squid's
12
* development; see the SPONSORS file for full details. Squid is
13
* Copyrighted (C) 2001 by the Regents of the University of
14
* California; see the COPYRIGHT file for full details. Squid
15
* incorporates software developed and/or copyrighted by other
16
* sources; see the CREDITS file for full details.
18
* This program is free software; you can redistribute it and/or modify
19
* it under the terms of the GNU General Public License as published by
20
* the Free Software Foundation; either version 2 of the License, or
21
* (at your option) any later version.
23
* This program is distributed in the hope that it will be useful,
24
* but WITHOUT ANY WARRANTY; without even the implied warranty of
25
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26
* GNU General Public License for more details.
28
* You should have received a copy of the GNU General Public License
29
* along with this program; if not, write to the Free Software
30
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
41
LOG_TCP_REFRESH_UNMODIFIED, // refresh from origin revalidated existing entry
42
LOG_TCP_REFRESH_FAIL, // refresh from origin failed
43
LOG_TCP_REFRESH_MODIFIED, // refresh from origin replaced existing entry
44
LOG_TCP_CLIENT_REFRESH_MISS,
46
LOG_TCP_SWAPFAIL_MISS,
78
ERR_FORWARDING_DENIED,
85
ERR_CACHE_ACCESS_DENIED,
86
ERR_CACHE_MGR_ACCESS_DENIED,
87
ERR_SQUID_SIGNATURE, /* not really an error */
88
ERR_FTP_PUT_CREATED, /* !error,a note that the file was created */
89
ERR_FTP_PUT_MODIFIED, /* modified, !created */
94
ERR_ONLY_IF_CACHED_MISS, /* failure to satisfy only-if-cached request */
97
ERR_ESI, /* Failure to perform ESI processing */
171
#if USE_CACHE_DIGESTS
210
typedef enum _mem_status_t {
257
HTTP_STATUS_NONE = 0,
259
HTTP_SWITCHING_PROTOCOLS = 101,
260
HTTP_PROCESSING = 102, /* RFC2518 section 10.1 */
264
HTTP_NON_AUTHORITATIVE_INFORMATION = 203,
265
HTTP_NO_CONTENT = 204,
266
HTTP_RESET_CONTENT = 205,
267
HTTP_PARTIAL_CONTENT = 206,
268
HTTP_MULTI_STATUS = 207, /* RFC2518 section 10.2 */
269
HTTP_MULTIPLE_CHOICES = 300,
270
HTTP_MOVED_PERMANENTLY = 301,
271
HTTP_MOVED_TEMPORARILY = 302,
272
HTTP_SEE_OTHER = 303,
273
HTTP_NOT_MODIFIED = 304,
274
HTTP_USE_PROXY = 305,
275
HTTP_TEMPORARY_REDIRECT = 307,
276
HTTP_BAD_REQUEST = 400,
277
HTTP_UNAUTHORIZED = 401,
278
HTTP_PAYMENT_REQUIRED = 402,
279
HTTP_FORBIDDEN = 403,
280
HTTP_NOT_FOUND = 404,
281
HTTP_METHOD_NOT_ALLOWED = 405,
282
HTTP_NOT_ACCEPTABLE = 406,
283
HTTP_PROXY_AUTHENTICATION_REQUIRED = 407,
284
HTTP_REQUEST_TIMEOUT = 408,
287
HTTP_LENGTH_REQUIRED = 411,
288
HTTP_PRECONDITION_FAILED = 412,
289
HTTP_REQUEST_ENTITY_TOO_LARGE = 413,
290
HTTP_REQUEST_URI_TOO_LARGE = 414,
291
HTTP_UNSUPPORTED_MEDIA_TYPE = 415,
292
HTTP_UNPROCESSABLE_ENTITY = 422, /* RFC2518 section 10.3 */
293
HTTP_LOCKED = 423, /* RFC2518 section 10.4 */
294
HTTP_FAILED_DEPENDENCY = 424, /* RFC2518 section 10.5 */
295
HTTP_INTERNAL_SERVER_ERROR = 500,
296
HTTP_NOT_IMPLEMENTED = 501,
297
HTTP_BAD_GATEWAY = 502,
298
HTTP_SERVICE_UNAVAILABLE = 503,
299
HTTP_GATEWAY_TIMEOUT = 504,
300
HTTP_HTTP_VERSION_NOT_SUPPORTED = 505,
301
HTTP_INSUFFICIENT_STORAGE = 507, /* RFC2518 section 10.6 */
302
HTTP_INVALID_HEADER = 600, /* Squid header parsing error */
303
HTTP_HEADER_TOO_LARGE = 601 /* Header too large to process */
307
* These are for StoreEntry->flag, which is defined as a SHORT
309
* NOTE: These flags are written to swap.state, so think very carefully
310
* about deleting or re-assigning!
332
* These are for client Streams. Each node in the stream can be queried for
336
STREAM_NONE, /* No particular status */
337
STREAM_COMPLETE, /* All data has been flushed, no more reads allowed */
338
/* an unpredicted end has occured, no more
339
* reads occured, but no need to tell
340
* downstream that an error occured
342
STREAM_UNPLANNED_COMPLETE,
343
/* An error has occured in this node or an above one,
344
* and the node is not generating an error body / it's
348
} clientStream_status_t;
353
ACCESS_REQ_PROXY_AUTH
357
AUTH_ACL_CHALLENGE = -2,
358
AUTH_ACL_HELPER = -1,
359
AUTH_ACL_CANNOT_AUTHENTICATE = 0,
360
AUTH_AUTHENTICATED = 1
364
AUTH_UNKNOWN, /* default */
369
AUTH_BROKEN /* known type, but broken data */
372
/* stateful helper callback response codes */
378
} stateful_helper_callback_t;
380
/* stateful helper reservation info */
382
S_HELPER_FREE, /* available for requests */
383
S_HELPER_RESERVED, /* in a reserved state - no active request, but state data in the helper shouldn't be disturbed */
384
S_HELPER_DEFERRED /* available for requests, and at least one more will come from a previous caller with the server pointer */
385
} stateful_helper_reserve_t;
405
MEM_ACL_DENY_INFO_LIST,
407
#if USE_CACHE_DIGESTS
419
MEM_HTTP_HDR_CONTENT_RANGE,
432
* NOTE! We must preserve the order of this list!
435
STORE_META_VOID, /* should not come up */
436
STORE_META_KEY_URL, /* key w/ keytype */
439
STORE_META_URL, /* the url , if not in the header */
440
STORE_META_STD, /* standard metadata */
441
STORE_META_HITMETERING, /* reserved for hit metering */
443
STORE_META_VARY_HEADERS, /* Stores Vary request headers */
452
STORE_LOG_SWAPOUTFAIL
463
/* parse state of HttpReply or HttpRequest */
465
psReadyToParseStartLine = 0,
466
psReadyToParseHeaders,
489
* These are field indicators for raw cache-cache netdb transfers
499
* Return codes from checkVary(request)
509
* Store digest state enum
518
} digest_read_state_t;
520
/* Distinguish between Request and Reply (for header mangling) */
527
/* CygWin & Windows NT Port */
530
* Supported Windows OS types codes
559
DISABLE_PMTU_TRANSPARENT
562
#endif /* SQUID_ENUMS_H */