the status code returned by a handler by updating the values of the filter
error macros and consolidating them in httpd.h
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@721677
13f79535-47bb-0310-9956-
ffa450edef68
* 20081104.0 (2.3.0-dev) Remove r and need_flush fields from proxy_conn_rec
* as they are no longer used and add
* ap_proxy_buckets_lifetime_transform to mod_proxy.h
- *
+ * 20081129.0 (2.3.0-dev) Move AP_FILTER_ERROR and AP_NOBODY_READ|WROTE
+ * from util_filter.h to httpd.h and change their
+ * numeric values so they do not overlap with other
+ * potential status codes
*/
#define MODULE_MAGIC_COOKIE 0x41503234UL /* "AP24" */
#ifndef MODULE_MAGIC_NUMBER_MAJOR
-#define MODULE_MAGIC_NUMBER_MAJOR 20081104
+#define MODULE_MAGIC_NUMBER_MAJOR 20081129
#endif
#define MODULE_MAGIC_NUMBER_MINOR 0 /* 0...n */
*/
AP_DECLARE(const char *) ap_get_server_built(void);
+/* non-HTTP status codes retuned by hooks */
+
+#define OK 0 /**< Module has handled this stage. */
#define DECLINED -1 /**< Module declines to handle */
#define DONE -2 /**< Module has served the response completely
* - it's safe to die() with no more output
*/
#define SUSPENDED -3 /**< Module will handle the remainder of the request.
* The core will never invoke the request again, */
-#define OK 0 /**< Module has handled this stage. */
+/** Returned by the bottom-most filter if no data was written.
+ * @see ap_pass_brigade(). */
+#define AP_NOBODY_WROTE -100
+/** Returned by the bottom-most filter if no data was read.
+ * @see ap_get_brigade(). */
+#define AP_NOBODY_READ -101
+/** Returned by any filter if the filter chain encounters an error
+ * and has already dealt with the error response.
+ */
+#define AP_FILTER_ERROR -102
/**
* @defgroup HTTP_Status HTTP Status Codes
extern "C" {
#endif
-/** Returned by the bottom-most filter if no data was written.
- * @see ap_pass_brigade(). */
-#define AP_NOBODY_WROTE -1
-/** Returned by the bottom-most filter if no data was read.
- * @see ap_get_brigade(). */
-#define AP_NOBODY_READ -2
-/** Returned when?? @bug find out when! */
-#define AP_FILTER_ERROR -3
-
/**
* @brief input filtering modes
*/