From: Stephan Bosch Date: Sun, 19 Mar 2017 14:06:13 +0000 (+0100) Subject: lib-http: Explicitly define the start of the range of internal response status codes. X-Git-Tag: 2.3.0.rc1~1912 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a8741f46cb3cf40e58e3d47b263f238918243380;p=thirdparty%2Fdovecot%2Fcore.git lib-http: Explicitly define the start of the range of internal response status codes. --- diff --git a/src/lib-http/http-client.h b/src/lib-http/http-client.h index d977f76485..1942880575 100644 --- a/src/lib-http/http-client.h +++ b/src/lib-http/http-client.h @@ -129,7 +129,7 @@ struct http_client_settings { enum http_client_request_error { /* The request was aborted */ - HTTP_CLIENT_REQUEST_ERROR_ABORTED = 9000, + HTTP_CLIENT_REQUEST_ERROR_ABORTED = HTTP_RESPONSE_STATUS_INTERNAL, /* Failed to perform DNS lookup for the host */ HTTP_CLIENT_REQUEST_ERROR_HOST_LOOKUP_FAILED, /* Failed to setup any connection for the host and client settings allowed diff --git a/src/lib-http/http-response.h b/src/lib-http/http-response.h index caf8374144..7c5efb1fdf 100644 --- a/src/lib-http/http-response.h +++ b/src/lib-http/http-response.h @@ -5,6 +5,8 @@ #include "http-header.h" +#define HTTP_RESPONSE_STATUS_INTERNAL 9000 + enum http_response_payload_type { HTTP_RESPONSE_PAYLOAD_TYPE_ALLOWED, HTTP_RESPONSE_PAYLOAD_TYPE_NOT_PRESENT,