]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: Add HTTP_CLIENT_REQUEST_ERROR_PREREQUISITE_FAILED error code
authorMarkus Valentin <markus.valentin@open-xchange.com>
Thu, 13 Nov 2025 11:04:05 +0000 (12:04 +0100)
committermarkus.valentin <markus.valentin@open-xchange.com>
Mon, 17 Nov 2025 08:07:44 +0000 (09:07 +0100)
This new internal error code can be used to signal that a prerequisite
for submitting the request failed.

src/lib-http/http-client.h

index 4d83499fc28b84c43da537b5750ad3b5a30511fe..37b70bfd293ac9dcd867316fdb56e5d416382f0d 100644 (file)
@@ -174,6 +174,9 @@ enum http_client_request_error {
        /* The request timed out (either this was the last attempt or the
           absolute timeout was hit) */
        HTTP_CLIENT_REQUEST_ERROR_TIMED_OUT = 9008,
+       /* The request is already known to fail as acquiring authorization
+          token already failed. Mark the request as failed before sending it */
+       HTTP_CLIENT_REQUEST_ERROR_PREREQUISITE_FAILED = 9009,
 };
 
 enum http_request_state {