commit 470fbb1413d6c870f7cae6c7a289b322563c34a6
parent 347540125ce6ed0dd61bb46725840fe9a8f52867
Author: Christian Grothoff <christian@grothoff.org>
Date: Fri, 9 May 2025 15:33:36 +0200
Revert "unpad"
This reverts commit e1580dfeceed74e4d41599f86279da20c9b34ef7.
Diffstat:
1 file changed, 45 insertions(+), 45 deletions(-)
diff --git a/gnu-taler-error-codes/registry.rec b/gnu-taler-error-codes/registry.rec
@@ -25,60 +25,60 @@
# 0 - 99: Reserved for GENERIC error codes
-Value: 0
+Value: 0000
Name: NONE
Description: Special code to indicate success (no error).
HttpStatus: 0
# We could not get the error code.
-Value: 1
+Value: 0001
Name: INVALID
Description: An error response did not include an error code in the format expected by the client. Most likely, the server does not speak the GNU Taler protocol. Check the URL and/or the network connection to the server.
HttpStatus: 0
-Value: 2
+Value: 0002
Name: GENERIC_CLIENT_INTERNAL_ERROR
Description: An internal failure happened on the client side. Details should be in the local logs. Check if you are using the latest available version or file a report with the developers.
HttpStatus: 0
-Value: 3
+Value: 0003
Name: GENERIC_CLIENT_UNSUPPORTED_PROTOCOL_VERSION
Description: The client does not support the protocol version advertised by the server.
HttpStatus: 0
# Fundamental problems detected client-side (10-19)
-Value: 10
+Value: 0010
Name: GENERIC_INVALID_RESPONSE
Description: The response we got from the server was not in the expected format. Most likely, the server does not speak the GNU Taler protocol. Check the URL and/or the network connection to the server.
HttpStatus: 0
-Value: 11
+Value: 0011
Name: GENERIC_TIMEOUT
Description: The operation timed out. Trying again might help. Check the network connection.
HttpStatus: 0
-Value: 12
+Value: 0012
Name: GENERIC_VERSION_MALFORMED
Description: The protocol version given by the server does not follow the required format. Most likely, the server does not speak the GNU Taler protocol. Check the URL and/or the network connection to the server.
HttpStatus: 0
-Value: 13
+Value: 0013
Name: GENERIC_REPLY_MALFORMED
Description: The service responded with a reply that was in the right data format, but the content did not satisfy the protocol. Please file a bug report.
HttpStatus: 0
-Value: 14
+Value: 0014
Name: GENERIC_CONFIGURATION_INVALID
Description: There is an error in the client-side configuration, for example an option is set to an invalid value. Check the logs and fix the local configuration.
HttpStatus: 0
-Value: 15
+Value: 0015
Name: GENERIC_UNEXPECTED_REQUEST_ERROR
Description: The client made a request to a service, but received an error response it does not know how to handle. Please file a bug report.
HttpStatus: 0
-Value: 16
+Value: 0016
Name: GENERIC_TOKEN_PERMISSION_INSUFFICIENT
Description: The token used by the client to authorize the request does not grant the required permissions for the request. Check the requirements and obtain a suitable authorization token to proceed.
HttpStatus: 403
@@ -86,53 +86,53 @@ HttpStatus: 403
# Fundamental client-side protocol problems (20-29)
# (fundamental: cannot be helped, client is very broken)
-Value: 20
+Value: 0020
Name: GENERIC_METHOD_INVALID
Description: The HTTP method used is invalid for this endpoint. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers.
HttpStatus: 405
-Value: 21
+Value: 0021
Name: GENERIC_ENDPOINT_UNKNOWN
Description: There is no endpoint defined for the URL provided by the client. Check if you used the correct URL and/or file a report with the developers of the client software.
HttpStatus: 404
-Value: 22
+Value: 0022
Name: GENERIC_JSON_INVALID
Description: The JSON in the client's request was malformed. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers.
HttpStatus: 400
-Value: 23
+Value: 0023
Name: GENERIC_HTTP_HEADERS_MALFORMED
Description: Some of the HTTP headers provided by the client were malformed and caused the server to not be able to handle the request. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers.
HttpStatus: 400
-Value: 24
+Value: 0024
Name: GENERIC_PAYTO_URI_MALFORMED
Description: The payto:// URI provided by the client is malformed. Check that you are using the correct syntax as of RFC 8905 and/or that you entered the bank account number correctly.
HttpStatus: 400
-Value: 25
+Value: 0025
Name: GENERIC_PARAMETER_MISSING
Description: A required parameter in the request was missing. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers.
HttpStatus: 400
-Value: 26
+Value: 0026
Name: GENERIC_PARAMETER_MALFORMED
Description: A parameter in the request was malformed. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers.
HttpStatus: 400
-Value: 27
+Value: 0027
Name: GENERIC_RESERVE_PUB_MALFORMED
Description: The reserve public key was malformed.
HttpStatus: 400
FIXME: Fold with 26?
-Value: 28
+Value: 0028
Name: GENERIC_COMPRESSION_INVALID
Description: The body in the request could not be decompressed by the server. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers.
HttpStatus: 400
-Value: 29
+Value: 0029
Name: GENERIC_PATH_SEGMENT_MALFORMED
Description: A segment in the path of the URL provided by the client is malformed. Check that you are using the correct encoding for the URL.
HttpStatus: 400
@@ -140,81 +140,81 @@ HttpStatus: 400
# Circumstantial client-side protocol problems (30-39)
# (Circumstantial == may work with another server, but not this one)
-Value: 30
+Value: 0030
Name: GENERIC_CURRENCY_MISMATCH
Description: The currency involved in the operation is not acceptable for this server. Check your configuration and make sure the currency specified for a given service provider is one of the currencies supported by that provider.
HttpStatus: 400
-Value: 31
+Value: 0031
Name: GENERIC_URI_TOO_LONG
Description: The URI is longer than the longest URI the HTTP server is willing to parse. If you believe this was a legitimate request, contact the server administrators and/or the software developers to increase the limit.
HttpStatus: 414
-Value: 32
+Value: 0032
Name: GENERIC_UPLOAD_EXCEEDS_LIMIT
Description: The body is too large to be permissible for the endpoint. If you believe this was a legitimate request, contact the server administrators and/or the software developers to increase the limit.
HttpStatus: 413
# 40-49: access control issues
-Value: 40
+Value: 0040
Name: GENERIC_UNAUTHORIZED
Description: The service refused the request due to lack of proper authorization. Accessing this endpoint requires an access token from the account owner.
HttpStatus: 401
-Value: 41
+Value: 0041
Name: GENERIC_TOKEN_UNKNOWN
Description: The service refused the request as the given authorization token is unknown. You should request a valid access token from the account owner.
HttpStatus: 401
-Value: 42
+Value: 0042
Name: GENERIC_TOKEN_EXPIRED
Description: The service refused the request as the given authorization token expired. You should request a fresh authorization token from the account owner.
HttpStatus: 401
-Value: 43
+Value: 0043
Name: GENERIC_TOKEN_MALFORMED
Description: The service refused the request as the given authorization token is invalid or malformed. You should check that you have the right credentials.
HttpStatus: 401
-Value: 44
+Value: 0044
Name: GENERIC_FORBIDDEN
Description: The service refused the request due to lack of proper rights on the resource. You may need different credentials to be allowed to perform this operation.
HttpStatus: 403
# Server-side database problems (50-59)
-Value: 50
+Value: 0050
Name: GENERIC_DB_SETUP_FAILED
Description: The service failed initialize its connection to the database. The system administrator should check that the service has permissions to access the database and that the database is running.
HttpStatus: 500
-Value: 51
+Value: 0051
Name: GENERIC_DB_START_FAILED
Description: The service encountered an error event to just start the database transaction. The system administrator should check that the database is running.
HttpStatus: 500
-Value: 52
+Value: 0052
Name: GENERIC_DB_STORE_FAILED
Description: The service failed to store information in its database. The system administrator should check that the database is running and review the service logs.
HttpStatus: 500
-Value: 53
+Value: 0053
Name: GENERIC_DB_FETCH_FAILED
Description: The service failed to fetch information from its database. The system administrator should check that the database is running and review the service logs.
HttpStatus: 500
-Value: 54
+Value: 0054
Name: GENERIC_DB_COMMIT_FAILED
Description: The service encountered an unrecoverable error trying to commit a transaction to the database. The system administrator should check that the database is running and review the service logs.
HttpStatus: 500
-Value: 55
+Value: 0055
Name: GENERIC_DB_SOFT_FAILURE
Description: The service encountered an error event to commit the database transaction, even after repeatedly retrying it there was always a conflicting transaction. This indicates a repeated serialization error; it should only happen if some client maliciously tries to create conflicting concurrent transactions. It could also be a sign of a missing index. Check if you are using the latest available version and/or file a report with the developers.
HttpStatus: 500
-Value: 56
+Value: 0056
Name: GENERIC_DB_INVARIANT_FAILURE
Description: The service's database is inconsistent and violates service-internal invariants. Check if you are using the latest available version and/or file a report with the developers.
HttpStatus: 500
@@ -222,17 +222,17 @@ HttpStatus: 500
# Server-side computational problems (60-69)
-Value: 60
+Value: 0060
Name: GENERIC_INTERNAL_INVARIANT_FAILURE
Description: The HTTP server experienced an internal invariant failure (bug). Check if you are using the latest available version and/or file a report with the developers.
HttpStatus: 500
-Value: 61
+Value: 0061
Name: GENERIC_FAILED_COMPUTE_JSON_HASH
Description: The service could not compute a cryptographic hash over some JSON value. Check if you are using the latest available version and/or file a report with the developers.
HttpStatus: 500
-Value: 62
+Value: 0062
Name: GENERIC_FAILED_COMPUTE_AMOUNT
Description: The service could not compute an amount. Check if you are using the latest available version and/or file a report with the developers.
HttpStatus: 500
@@ -240,32 +240,32 @@ HttpStatus: 500
# Server-side resource problems (70-79)
-Value: 70
+Value: 0070
Name: GENERIC_PARSER_OUT_OF_MEMORY
Description: The HTTP server had insufficient memory to parse the request. Restarting services periodically can help, especially if Postgres is using excessive amounts of memory. Check with the system administrator to investigate.
HttpStatus: 500
-Value: 71
+Value: 0071
Name: GENERIC_ALLOCATION_FAILURE
Description: The HTTP server failed to allocate memory. Restarting services periodically can help, especially if Postgres is using excessive amounts of memory. Check with the system administrator to investigate.
HttpStatus: 500
-Value: 72
+Value: 0072
Name: GENERIC_JSON_ALLOCATION_FAILURE
Description: The HTTP server failed to allocate memory for building JSON reply. Restarting services periodically can help, especially if Postgres is using excessive amounts of memory. Check with the system administrator to investigate.
HttpStatus: 500
-Value: 73
+Value: 0073
Name: GENERIC_CURL_ALLOCATION_FAILURE
Description: The HTTP server failed to allocate memory for making a CURL request. Restarting services periodically can help, especially if Postgres is using excessive amounts of memory. Check with the system administrator to investigate.
HttpStatus: 500
-Value: 74
+Value: 0074
Name: GENERIC_FAILED_TO_LOAD_TEMPLATE
Description: The backend could not locate a required template to generate an HTML reply. The system administrator should check if the resource files are installed in the correct location and are readable to the service.
HttpStatus: 406
-Value: 75
+Value: 0075
Name: GENERIC_FAILED_TO_EXPAND_TEMPLATE
Description: The backend could not expand the template to generate an HTML reply. The system administrator should investigate the logs and check if the templates are well-formed.
HttpStatus: 500