summaryrefslogtreecommitdiff
path: root/daemon/httpauthd.h
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2004-04-26 20:39:55 +0000
committerStef Walter <stef@memberwebs.com>2004-04-26 20:39:55 +0000
commit8368de7830f336533f9fe6369641070239bf739c (patch)
tree5ad9641a6254c1c3a9e33750fdfb37ac7fbb7583 /daemon/httpauthd.h
parent627c573af25b602ac64c36b01c8163c592cbb494 (diff)
More debugging fixes.
Diffstat (limited to 'daemon/httpauthd.h')
-rw-r--r--daemon/httpauthd.h28
1 files changed, 18 insertions, 10 deletions
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 */