diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-11-17 17:04:23 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-11-17 17:04:23 +0100 |
commit | 161b801fd691e0db697f2228dd96c87f71d01f40 (patch) | |
tree | bd604fb22b5b3e1cff83756bf435c4ace54c80f3 /src/include | |
parent | 7b353c01856d75651233840f95ac028a1d47ec6d (diff) |
sync error codes
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_error_codes.h | 104 | ||||
-rw-r--r-- | src/include/taler_signatures.h | 12 |
2 files changed, 114 insertions, 2 deletions
diff --git a/src/include/taler_error_codes.h b/src/include/taler_error_codes.h index 2212fdb00..28ee64fed 100644 --- a/src/include/taler_error_codes.h +++ b/src/include/taler_error_codes.h @@ -1,6 +1,6 @@ /* This file is part of TALER - Copyright (C) 2016, 2017 Taler Systems SA + Copyright (C) 2016, 2017, 2019 Taler Systems SA TALER is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -1875,7 +1875,107 @@ enum TALER_ErrorCode * This response is provided with HTTP status code * MHD_HTTP_BAD_REQUEST. */ - TALER_EC_SYNC_BAD_ETAG = 6003, + TALER_EC_SYNC_BAD_IF_NONE_MATCH = 6003, + + /** + * The Etag provided in the If-Match header is + * malformed. + * This response is provided with HTTP status code + * MHD_HTTP_BAD_REQUEST. + */ + TALER_EC_SYNC_BAD_IF_MATCH = 6004, + + /** + * The signature provided in the "Sync-Signature" header is + * malformed. + * This response is provided with HTTP status code + * MHD_HTTP_BAD_REQUEST. + */ + TALER_EC_SYNC_BAD_SYNC_SIGNATURE = 6005, + + /** + * The Etag provided in the "Etag" header is + * malformed. + * This response is provided with HTTP status code + * MHD_HTTP_BAD_REQUEST. + */ + TALER_EC_SYNC_BAD_ETAG = 6006, + + /** + * The signature provided in the "Sync-Signature" header + * does not match the account, old or new Etags. + * This response is provided with HTTP status code + * MHD_HTTP_UNAUTHORIZED. + */ + TALER_EC_SYNC_INVALID_SIGNATURE = 6007, + + /** + * The "Content-length" field for the upload is either + * not a number, or too big, or missing. + * This response is provided with HTTP status code + * MHD_HTTP_BAD_REQUEST. + */ + TALER_EC_SYNC_BAD_CONTENT_LENGTH = 6008, + + /** + * The "Content-length" field for the upload is + * too big based on the server's terms of service. + * This response is provided with HTTP status code + * MHD_HTTP_PAYLOAD_TOO_LARGE. + */ + TALER_EC_SYNC_EXCESSIVE_CONTENT_LENGTH = 6009, + + /** + * The server is out of memory to handle the upload. + * Trying again later may succeed. + * This response is provided with HTTP status code + * MHD_HTTP_PAYLOAD_TOO_LARGE. + */ + TALER_EC_SYNC_OUT_OF_MEMORY_ON_CONTENT_LENGTH = 6010, + + /** + * The uploaded data does not match the Etag. + * This response is provided with HTTP status code + * MHD_HTTP_BAD_REQUEST. + */ + TALER_EC_SYNC_INVALID_UPLOAD = 6011, + + /** + * We failed to check for existing upload data in the database. + * This response is provided with HTTP status code + * MHD_HTTP_INTERNAL_SERVER_ERROR. + */ + TALER_EC_SYNC_DATABASE_FETCH_ERROR = 6012, + + /** + * HTTP server was being shutdown while this operation was + * pending. + * This response is provided with HTTP status code + * MHD_HTTP_SERVICE_UNAVAILABLE. + */ + TALER_EC_SYNC_SHUTDOWN = 6013, + + /** + * HTTP server experienced a timeout while awaiting + * promised payment. + * This response is provided with HTTP status code + * MHD_HTTP_REQUEST_TIMEOUT. + */ + TALER_EC_SYNC_PAYMENT_TIMEOUT = 6014, + + /** + * Sync could not store order data in its own database. + * This response is provided with HTTP status code + * MHD_HTTP_INTERNAL_ERROR. + */ + TALER_EC_SYNC_PAYMENT_CREATE_DB_ERROR = 6015, + + /** + * Sync could not store payment confirmation in its own database. + * This response is provided with HTTP status code + * MHD_HTTP_INTERNAL_ERROR. + */ + TALER_EC_SYNC_PAYMENT_CONFIRM_DB_ERROR = 6016, /** diff --git a/src/include/taler_signatures.h b/src/include/taler_signatures.h index 9fa98d8c0..1e27e8f9e 100644 --- a/src/include/taler_signatures.h +++ b/src/include/taler_signatures.h @@ -250,6 +250,17 @@ #define TALER_SIGNATURE_ANASTASIS_POLICY_DOWNLOAD 1401 +/*******************/ +/* Sync signatures */ +/*******************/ + + +/** + * EdDSA signature for a backup upload. + */ +#define TALER_SIGNATURE_SYNC_BACKUP_UPLOAD 1450 + + GNUNET_NETWORK_STRUCT_BEGIN /** @@ -1410,6 +1421,7 @@ struct TALER_MerchantPaySessionSigPS }; + GNUNET_NETWORK_STRUCT_END #endif |