From 8368de7830f336533f9fe6369641070239bf739c Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Mon, 26 Apr 2004 20:39:55 +0000 Subject: More debugging fixes. --- daemon/httpauthd.h | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) (limited to 'daemon/httpauthd.h') diff --git a/daemon/httpauthd.h b/daemon/httpauthd.h index 8693310..95187be 100644 --- a/daemon/httpauthd.h +++ b/daemon/httpauthd.h @@ -148,24 +148,33 @@ typedef struct ha_handler ha_handler_t; /* - * OK signifies that things went according to plan. Return - * this even if authentication fails (send auth to user) - * unless something unexpected happens. + * OK signifies that things went according to plan. */ -#define HA_OK 1 +#define HA_OK 0 /* - * FALSE signifies that we couldn't process but it wasn't - * an error. + * FALSE: the process failed but it wasn't an error. */ -#define HA_FALSE 0 +#define HA_FALSE 1 /* * ERROR means a bad error happened which will kill the * current processing thread. Examples are out of memory * errors or the like. */ -#define HA_ERROR -1 +#define HA_CRITERROR -1 + +/* + * FAILED: something internal to the server failed. + */ +#define HA_FAILED -2 + +/* + * BADREQ means that we got a bad request or call. + */ +#define HA_BADREQ -3 + + struct ha_options; @@ -237,12 +246,11 @@ typedef struct ha_request } ha_request_t; -/* The various response codes */ +/* The various response codes for the client */ #define HA_SERVER_READY 100 #define HA_SERVER_ACCEPT 200 #define HA_SERVER_DECLINE 401 #define HA_SERVER_BADREQ 402 -#define HA_SERVER_ERROR 500 #define HA_SERVER_BUSY 500 /* A response to the client */ -- cgit v1.2.3