From: Markus Valentin Date: Thu, 13 Nov 2025 11:04:05 +0000 (+0100) Subject: lib-http: Add HTTP_CLIENT_REQUEST_ERROR_PREREQUISITE_FAILED error code X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a327df782dac30268b36a2d54d9a06ac3ca50ada;p=thirdparty%2Fdovecot%2Fcore.git lib-http: Add HTTP_CLIENT_REQUEST_ERROR_PREREQUISITE_FAILED error code This new internal error code can be used to signal that a prerequisite for submitting the request failed. --- diff --git a/src/lib-http/http-client.h b/src/lib-http/http-client.h index 4d83499fc2..37b70bfd29 100644 --- a/src/lib-http/http-client.h +++ b/src/lib-http/http-client.h @@ -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 {