commit 2615380f936607485ae9ba6dd151bd080e7c7247
parent ded30860bb2013a259c686cff57acab75358444d
Author: Christian Grothoff <christian@grothoff.org>
Date: Sat, 10 Oct 2026 17:08:30 +0200
sort HTTP status codes
Diffstat:
1 file changed, 15 insertions(+), 11 deletions(-)
diff --git a/core/merchant/post-orders-ORDER_ID-pay.rst b/core/merchant/post-orders-ORDER_ID-pay.rst
@@ -130,10 +130,12 @@
The given exchange is not acceptable for this merchant, as it is not in the
list of accepted exchanges and not audited by an approved auditor.
TODO: Status code may be changed to 409 in the future as 412 is technically wrong.
+
:http:statuscode:`413 Request entity too large`:
The uploaded body is to long, it exceeds the size limit.
Returned with an error code of
``TALER_EC_GENERIC_UPLOAD_EXCEEDS_LIMIT``.
+
:http:statuscode:`451 Unavailable for Legal Reasons`:
The exchange has rejected the deposit by the merchant
for legal reasons. This is **not** exactly a client
@@ -150,6 +152,19 @@
Since protocol **v17**.
Returned with ``TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_EXCHANGE_LEGALLY_REFUSED`` or
``TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_EXCHANGE_TRANSACTION_LIMIT_VIOLATION``.
+
+ :http:statuscode:`500 Internal Server Error`:
+ The server experienced an internal failure.
+ Returned with ``TALER_EC_GENERIC_DB_STORE_FAILED``,
+ ``TALER_EC_GENERIC_DB_FETCH_FAILED``,
+ ``TALER_EC_GENERIC_DB_START_FAILED``,
+ ``TALER_EC_GENERIC_DB_COMMIT_FAILED``,
+ ``TALER_EC_GENERIC_DB_SOFT_FAILURE``,
+ ``TALER_EC_GENERIC_DB_INVARIANT_FAILURE``,
+ ``TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE``,
+ ``TALER_EC_GENERIC_FAILED_COMPUTE_JSON_HASH`` or
+ ``TALER_EC_MERCHANT_GENERIC_DB_CONTRACT_CONTENT_INVALID``.
+
:http:statuscode:`501 Not implemented`:
This is returned if an optional feature required to
process this particular payment is no longer implemented.
@@ -173,17 +188,6 @@
* ``MERCHANT_GENERIC_EXCHANGE_REPLY_MALFORMED``
* ``MERCHANT_GENERIC_DONAU_INVALID_RESPONSE``
- :http:statuscode:`500 Internal Server Error`:
- The server experienced an internal failure.
- Returned with ``TALER_EC_GENERIC_DB_STORE_FAILED``,
- ``TALER_EC_GENERIC_DB_FETCH_FAILED``,
- ``TALER_EC_GENERIC_DB_START_FAILED``,
- ``TALER_EC_GENERIC_DB_COMMIT_FAILED``,
- ``TALER_EC_GENERIC_DB_SOFT_FAILURE``,
- ``TALER_EC_GENERIC_DB_INVARIANT_FAILURE``,
- ``TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE``,
- ``TALER_EC_GENERIC_FAILED_COMPUTE_JSON_HASH`` or
- ``TALER_EC_MERCHANT_GENERIC_DB_CONTRACT_CONTENT_INVALID``.
:http:statuscode:`504 Gateway timeout`:
The merchant's interaction with the exchange took too long.
The client might want to try again later.