gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-util] branch master updated: new status codes


From: gnunet
Subject: [taler-taler-util] branch master updated: new status codes
Date: Thu, 27 Feb 2020 23:56:02 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository taler-util.

The following commit(s) were added to refs/heads/master by this push:
     new 63aae0e  new status codes
     new 8c0c49a  new status codes
63aae0e is described below

commit 63aae0e1a4c4289b0c1e9a600cc738e15ca0086f
Author: Christian Grothoff <address@hidden>
AuthorDate: Thu Feb 27 23:54:33 2020 +0100

    new status codes
---
 taler/util/errorcodes.py | 110 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 110 insertions(+)

diff --git a/taler/util/errorcodes.py b/taler/util/errorcodes.py
index 3105daa..3613556 100644
--- a/taler/util/errorcodes.py
+++ b/taler/util/errorcodes.py
@@ -122,6 +122,52 @@ ec._add_ec(
     """,
 )
 
+ec._add_ec(
+    "METHOD_INVALID",
+    8,
+    """
+    HTTP method invalid for this URL.
+    """,
+)
+
+ec._add_ec(
+    "OPERATION_INVALID",
+    9,
+    """
+    Operation specified invalid for this URL (resulting in a "NOT
+    FOUND" for the overall response).
+    """,
+)
+
+ec._add_ec(
+    "ENDPOINT_UNKNOWN",
+    10,
+    """
+    There is no endpoint defined for the URL provided by the client
+    (returned together with a MHD_HTTP_NOT FOUND status code).
+    """,
+)
+
+ec._add_ec(
+    "URI_TOO_LONG",
+    11,
+    """
+     The URI is longer than the longest URI the HTTP server is willing
+     to parse. Returned together with an HTTP status code of
+     MHD_HTTP_URI_TOO_LONG.
+    """,
+)
+
+ec._add_ec(
+    "WRONG_NUMBER_OF_SEGMENTS",
+    12,
+    """
+    The number of segments included in the URI does not match the
+    number of segments expected by the endpoint. (returned together
+    with a MHD_HTTP_NOT FOUND status code).
+    """,
+)
+
 
 ec._add_ec(
     "DB_SETUP_FAILED",
@@ -274,6 +320,70 @@ ec._add_ec(
     """,
 )
 
+ec._add_ec(
+    "COINS_INVALID_COIN_PUB",
+    1050,
+    """
+    The public key of given to a /coins/ handler was malformed.
+    """,
+)
+
+ec._add_ec(
+    "RESERVES_INVALID_RESERVE_PUB",
+    1051,
+    """
+    The reserve key of given to a /reserves/ handler was malformed.
+    """,
+)
+
+ec._add_ec(
+    "TRANSFERS_INVALID_WTID",
+    1052,
+    """
+    The public key of given to a /transfers/ handler was malformed.
+    """,
+)
+
+ec._add_ec(
+    "DEPOSITS_INVALID_H_WIRE",
+    1053,
+    """
+    The wire hash of given to a /deposits/ handler was malformed.
+    """,
+)
+
+ec._add_ec(
+    "DEPOSITS_INVALID_MERCHANT_PUB",
+    1054,
+    """
+    The merchant key of given to a /deposits/ handler was malformed.
+    """,
+)
+
+ec._add_ec(
+    "DEPOSTIS_INVALID_H_CONTRACT_TERMS",
+    1055,
+    """
+    The hash of the contract terms given to a /deposits/ handler was malformed.
+    """,
+)
+
+ec._add_ec(
+    "DEPOSTIS_INVALID_COIN_PUB",
+    1056,
+    """
+    The coin public key of given to a /deposits/ handler was malformed.
+    """,
+)
+
+ec._add_ec(
+    "REFRESHES_INVALID_RCH",
+    1057,
+    """
+    The refresh session hash given to a /refreshes/ handler was malformed.
+    """,
+)
+
 ec._add_ec(
     "WITHDRAW_INSUFFICIENT_FUNDS",
     1100,

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]