commit 66cb3c58afcf772530701de8721bd66595d543ed parent ee829bc8d16b114ce05dbebe50b87becf744678b Author: Christian Grothoff <christian@grothoff.org> Date: Fri, 3 Apr 2026 17:12:14 +0200 add missing status codes, in particular 413 Diffstat:
53 files changed, 236 insertions(+), 38 deletions(-)
diff --git a/core/exchange/post-aml-OFFICER_PUB-decision.rst b/core/exchange/post-aml-OFFICER_PUB-decision.rst @@ -29,7 +29,10 @@ - ``TALER_EC_EXCHANGE_AML_DECISION_MORE_RECENT_PRESENT`` or - ``TALER_EC_EXCHANGE_AML_DECISION_INVALID_OFFICER`` - + :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:`500 Internal server error`: The server had an internal error processing the request. Returned with one of various error codes, including: diff --git a/core/exchange/post-auditors-AUDITOR_PUB-H_DENOM_PUB.rst b/core/exchange/post-auditors-AUDITOR_PUB-H_DENOM_PUB.rst @@ -23,6 +23,10 @@ This auditor is no longer supported by the exchange. :http:statuscode:`412 Precondition failed`: This auditor is not yet known to the exchange. + :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``. **Details:** diff --git a/core/exchange/post-batch-deposit.rst b/core/exchange/post-batch-deposit.rst @@ -51,6 +51,10 @@ `DenominationGoneMessage`. Clients must evaluate the error code provided to understand which of the cases this is and handle it accordingly. + :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`: This merchant has not yet passed the KYC checks. The client must pass KYC checks before proceeding with the deposit. diff --git a/core/exchange/post-blinding-prepare.rst b/core/exchange/post-blinding-prepare.rst @@ -29,6 +29,10 @@ The response is a `DenominationGoneMessage`. Clients must evaluate the error code provided to understand which of the cases this is and handle it accordingly. + :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``. **Details:** diff --git a/core/exchange/post-coins-COIN_PUB-refund.rst b/core/exchange/post-coins-COIN_PUB-refund.rst @@ -26,6 +26,10 @@ merchant for the same coin and contract, but the refund amount differs. (The failed precondition is that the ``rtransaction_id`` is not unique.) The response will be a `RefundFailure` object with the conflicting refund request. + :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``. **Details:** diff --git a/core/exchange/post-kyc-start-ID.rst b/core/exchange/post-kyc-start-ID.rst @@ -29,6 +29,10 @@ This response comes with a standard `ErrorDetail` response with a code of ``TALER_EC_EXCHANGE_KYC_FORM_ALREADY_UPLOADED`` or ``TALER_EC_EXCHANGE_KYC_INVALID_LOGIC_TO_CHECK``. + :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``. **Details:** diff --git a/core/exchange/post-kyc-wallet.rst b/core/exchange/post-kyc-wallet.rst @@ -36,6 +36,10 @@ :http:statuscode:`403 Forbidden`: The provided signature is invalid. This response comes with a standard `ErrorDetail` response. + :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:`500 Internal server error`: The server had an internal error processing the request. Returned with one of various error codes, including: diff --git a/core/exchange/post-management-aml-officers.rst b/core/exchange/post-management-aml-officers.rst @@ -18,6 +18,10 @@ The exchange has previously received a conflicting configuration message. Returned with an error code of ``TALER_EC_EXCHANGE_MANAGEMENT_AML_OFFICERS_MORE_RECENT_PRESENT`` + :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``. **Details:** diff --git a/core/exchange/post-management-auditors-AUDITOR_PUB-disable.rst b/core/exchange/post-management-auditors-AUDITOR_PUB-disable.rst @@ -27,6 +27,10 @@ The exchange has a more recent request related to this auditor key (replay detected). Returned with an error code of ``TALER_EC_EXCHANGE_MANAGEMENT_AUDITOR_MORE_RECENT_PRESENT``. + :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``. **Details:** diff --git a/core/exchange/post-management-drain.rst b/core/exchange/post-management-drain.rst @@ -17,6 +17,10 @@ The master signature is invalid. Returned with an error code of ``TALER_EC_EXCHANGE_MANAGEMENT_DRAIN_PROFITS_SIGNATURE_INVALID``. + :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:`500 Internal server error`: The server encountered an internal error processing the request. Returned with an error code of diff --git a/core/exchange/post-management-global-fees.rst b/core/exchange/post-management-global-fees.rst @@ -14,6 +14,10 @@ The signature is invalid. :http:statuscode:`409 Conflict`: The exchange has previously received a conflicting configuration message. + :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``. **Details:** diff --git a/core/exchange/post-management-keys.rst b/core/exchange/post-management-keys.rst @@ -21,6 +21,10 @@ This response comes with a standard `ErrorDetail` response with a code of ``TALER_EC_EXCHANGE_MANAGEMENT_CONFLICTING_DENOMINATION_META_DATA`` or ``TALER_EC_EXCHANGE_MANAGEMENT_CONFLICTING_SIGNKEY_META_DATA``. + :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``. **Details:** diff --git a/core/exchange/post-management-partners.rst b/core/exchange/post-management-partners.rst @@ -15,6 +15,10 @@ The signature is invalid. :http:statuscode:`409 Conflict`: The exchange has previously received a conflicting configuration message. + :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``. **Details:** diff --git a/core/exchange/post-management-wire-disable.rst b/core/exchange/post-management-wire-disable.rst @@ -3,30 +3,38 @@ This request will be used to disable the use of the given wire method. We use POST instead of DELETE because the exchange will retain state about the wire method (specifically the end date) to prevent replay - attacks abusing the `WireSetupMessage`. Also, DELETE would not + attacks abusing the `WireSetupRequest`. Also, DELETE would not support a body, which is needed to provide the signature authorizing the operation. **Request:** - The request must be a `WireTeardownMessage`. + The request must be a `WireTeardownRequest`. **Response:** :http:statuscode:`204 No content`: The auditor has successfully disabled the wire method. The body is empty. :http:statuscode:`403 Forbidden`: - The signature is invalid. + The signature is invalid. Returned with an error code of + ``TALER_EC_EXCHANGE_MANAGEMENT_WIRE_DEL_SIGNATURE_INVALID``. :http:statuscode:`404 Not found`: - The wire method is unknown to the exchange. + The wire method is unknown to the exchange. Returned with an error code + of ``TALER_EC_EXCHANGE_MANAGEMENT_WIRE_NOT_FOUND``. :http:statuscode:`409 Conflict`: The exchange has a more recent request related to this wire method (replay detected). + Returned with an error code of + ``TALER_EC_EXCHANGE_MANAGEMENT_WIRE_MORE_RECENT_PRESENT``. + :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``. **Details:** - .. ts:def:: WireTeardownMessage + .. ts:def:: WireTeardownRequest - interface WireTeardownMessage { + interface WireTeardownRequest { // Full ``payto://`` URL identifying the account and wire method payto_uri: string; diff --git a/core/exchange/post-management-wire-fee.rst b/core/exchange/post-management-wire-fee.rst @@ -4,22 +4,25 @@ **Request:** - The request must be a `WireFeeSetupMessage`. + The request must be a `WireFeeSetupRequest`. **Response:** :http:statuscode:`204 No content`: The wire fee was successfully configured. :http:statuscode:`403 Forbidden`: - The master signature is invalid. + The master signature is invalid. Returned with an error code + of ``TALER_EC_EXCHANGE_MANAGEMENT_WIRE_FEE_SIGNATURE_INVALID``. :http:statuscode:`409 Conflict`: The exchange has a conflicting wire fee already set up. + Returned with an errro code of + ``TALER_EC_EXCHANGE_MANAGEMENT_WIRE_FEE_MISMATCH``. **Details:** - .. ts:def:: WireFeeSetupMessage + .. ts:def:: WireFeeSetupRequest - interface WireFeeSetupMessage { + interface WireFeeSetupRequest { // Wire method the fee applies to. wire_method: string; diff --git a/core/exchange/post-management-wire.rst b/core/exchange/post-management-wire.rst @@ -16,9 +16,18 @@ a code of ``TALER_EC_GENERIC_PAYTO_URI_MALFORMED`` or ``TALER_EC_GENERIC_PARAMETER_MALFORMED``. :http:statuscode:`403 Forbidden`: - The master signature is invalid. + A master signature is invalid. Return with error codes of: + - ``TALER_EC_EXCHANGE_MANAGEMENT_WIRE_ADD_SIGNATURE_INVALID`` + - ``TALER_EC_EXCHANGE_MANAGEMENT_WIRE_DETAILS_SIGNATURE_INVALID`` :http:statuscode:`409 Conflict`: The exchange has a more recent request related to this wire method (replay detected). + Returned with an error code of + ``TALER_EC_EXCHANGE_MANAGEMENT_WIRE_MORE_RECENT_PRESENT``. + :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``. + **Details:** diff --git a/core/exchange/post-melt.rst b/core/exchange/post-melt.rst @@ -151,21 +151,6 @@ // which signing key was used. exchange_pub: EddsaPublicKey; - // Base URL to use for operations on the refresh context - // (so the reveal operation). If not given, - // the base URL is the same as the one used for this request. - // Can be used if the base URL for ``/reveal-melt/`` differs from that - // for ``/melt/``, i.e. for load balancing. Clients SHOULD - // respect the reveal_base_url if provided. Any HTTP server - // belonging to an exchange MUST generate a 307 or 308 redirection - // to the correct base URL should a client uses the wrong base - // URL, or if the base URL has changed since the melt. - // - // When melting the same coin twice (technically allowed - // as the response might have been lost on the network), - // the exchange may return different values for the ``reveal_base_url``. - reveal_base_url?: string; - } .. ts:def:: MeltForbiddenResponse diff --git a/core/exchange/post-purses-PURSE_PUB-create.rst b/core/exchange/post-purses-PURSE_PUB-create.rst @@ -4,7 +4,7 @@ **Request:** - The request body must be a `PurseCreate` object. + The request body must be a `PurseCreateRequest` object. **Response:** @@ -39,21 +39,23 @@ The specific fields of the response depend on the error code and include the signatures (and what was signed over) proving the conflict. - :http:statuscode:`425 Too Early`: - This response type is used if the given purse expiration time - is too far in the future (at least from the perspective - of the exchange). Thus, retrying at a later time may - succeed. The client should look at the ``Date:`` header - of the response to see if a minor time difference is to - blame and possibly adjust the request accordingly. - (Note: this status code is not yet used.) + :http:statuscode:`410 Gone`: + The requested denomination key is not yet or no longer valid. + It either before the validity start, past the expiration or was revoked. + The response is a `DenominationGoneMessage`. Clients must evaluate + the error code provided to understand which of the + cases this is and handle it accordingly. + :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``. **Details:** - .. ts:def:: PurseCreate + .. ts:def:: PurseCreateRequest - interface PurseCreate { + interface PurseCreateRequest { // Total value of the purse, excluding fees. amount: Amount; diff --git a/core/exchange/post-purses-PURSE_PUB-deposit.rst b/core/exchange/post-purses-PURSE_PUB-deposit.rst @@ -34,6 +34,10 @@ (alas some cases are impossible). :http:statuscode:`410 Gone`: The purse has expired. + :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``. **Details:** diff --git a/core/exchange/post-purses-PURSE_PUB-merge.rst b/core/exchange/post-purses-PURSE_PUB-merge.rst @@ -33,6 +33,10 @@ :http:statuscode:`410 Gone`: The purse has already expired and thus can no longer be merged. This response comes with a standard `ErrorDetail` response. + :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`: This account has not yet passed the KYC checks. The client must pass KYC checks before proceeding with the merge. diff --git a/core/exchange/post-recoup-refresh.rst b/core/exchange/post-recoup-refresh.rst @@ -48,6 +48,10 @@ `DenominationGoneMessage`. Clients must evaluate the error code provided to understand which of the cases this is and handle it accordingly. + :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``. **Details:** diff --git a/core/exchange/post-reserves-RESERVE_PUB-close.rst b/core/exchange/post-reserves-RESERVE_PUB-close.rst @@ -30,6 +30,10 @@ :http:statuscode:`409 Conflict`: No target account was given, and the exchange does not know an origin account for this reserve. + :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`: This account has not yet passed the KYC checks, hence wiring funds to a non-origin account is not allowed. diff --git a/core/exchange/post-reserves-RESERVE_PUB-open.rst b/core/exchange/post-reserves-RESERVE_PUB-open.rst @@ -33,6 +33,10 @@ conflict. The response is `WithdrawError` object or a `DepositDoubleSpendError` depending on the error type. + :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`: This account has not yet passed the KYC checks. The client must pass KYC checks before the reserve can be opened. diff --git a/core/exchange/post-reserves-RESERVE_PUB-purse.rst b/core/exchange/post-reserves-RESERVE_PUB-purse.rst @@ -58,6 +58,10 @@ The purse has expired. This response comes with a standard `ErrorDetail` response with a code of ``TALER_EC_EXCHANGE_GENERIC_PURSE_EXPIRED``. + :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`: This account has not yet passed the KYC checks. The client must pass KYC checks before proceeding with the merge. diff --git a/core/exchange/post-reserves-attest-RESERVE_PUB.rst b/core/exchange/post-reserves-attest-RESERVE_PUB.rst @@ -23,6 +23,10 @@ The reserve key does not belong to a reserve known to the exchange. :http:statuscode:`409 Conflict`: The exchange does not have the requested KYC information. + :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``. **Details:** diff --git a/core/exchange/post-reveal-melt.rst b/core/exchange/post-reveal-melt.rst @@ -32,6 +32,10 @@ but of course expected to be primarily used for diagnostics. The response body is a `RevealConflictResponse`. + :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``. **Details:** diff --git a/core/exchange/post-reveal-withdraw.rst b/core/exchange/post-reveal-withdraw.rst @@ -41,6 +41,10 @@ result in the value of field ``h_commitment``. Error code: ``TALER_EC_EXCHANGE_WITHDRAW_REVEAL_INVALID_HASH`` + :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:`500 Internal Server Error`: Returned if the server had an internal issue processing the request. Error codes include: diff --git a/core/exchange/post-withdraw.rst b/core/exchange/post-withdraw.rst @@ -99,6 +99,10 @@ wallet to figure out how long to wait. Alternatively, the wallet could try with an the previous denomination key generation. Note: this is a bit of an abuse of the HTTP status code. + :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`: This reserve has received funds from a purse or the amount withdrawn exceeds another legal threshold and thus the reserve must diff --git a/core/merchant/post-challenge-CHALLENGE_ID-confirm.rst b/core/merchant/post-challenge-CHALLENGE_ID-confirm.rst @@ -30,6 +30,10 @@ Wrong TAN, returned with an error code of ``TALER_EC_MERCHANT_TAN_CHALLENGE_FAILED`` in a response of type `MerchantChallengeFailedResponse`. + :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:`429 Too many requests`: Too many failed confirmation attempts, a new TAN must be requested. Returned with ``TALER_EC_MERCHANT_TAN_TOO_MANY_ATTEMPTS``. diff --git a/core/merchant/post-challenge-CHALLENGE_ID.rst b/core/merchant/post-challenge-CHALLENGE_ID.rst @@ -26,6 +26,10 @@ :http:statuscode:`410 Gone`: The challenge was already solved. Returned with ``TALER_EC_MERCHANT_TAN_CHALLENGE_SOLVED``. + :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:`429 Too many requests`: Too many challenges are active right now, you must wait or confirm current challenges. diff --git a/core/merchant/post-instances-INSTANCE-forgot-password.rst b/core/merchant/post-instances-INSTANCE-forgot-password.rst @@ -26,6 +26,10 @@ Returned with ``TALER_EC_MERCHANT_GENERIC_MFA_MISSING``. :http:statuscode:`404 Not found`: This instance is unknown and thus cannot be reconfigured. + :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:`500 Internal Server Error`: The server experienced an internal failure. Returned with ``TALER_EC_GENERIC_DB_STORE_FAILED``. diff --git a/core/merchant/post-instances.rst b/core/merchant/post-instances.rst @@ -43,6 +43,10 @@ currency supported by this backend. Another possible conflict would be if a deleted but not purged instance is known under this ID to the backend. + :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:`500 Internal Server Error`: The server experienced an internal failure. Returned with ``TALER_EC_GENERIC_DB_STORE_FAILED``. diff --git a/core/merchant/post-management-instances-INSTANCE-auth.rst b/core/merchant/post-management-instances-INSTANCE-auth.rst @@ -24,6 +24,10 @@ :http:statuscode:`404 Not found`: This instance is unknown and thus cannot be reconfigured. Returned with ``TALER_EC_MERCHANT_GENERIC_INSTANCE_UNKNOWN``. + :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:`500 Internal Server Error`: The server experienced an internal failure. Returned with ``TALER_EC_GENERIC_DB_START_FAILED``, diff --git a/core/merchant/post-management-instances.rst b/core/merchant/post-management-instances.rst @@ -32,6 +32,10 @@ ID to the backend. Returned with ``TALER_EC_MERCHANT_PRIVATE_POST_INSTANCES_ALREADY_EXISTS`` or ``TALER_EC_MERCHANT_PRIVATE_POST_INSTANCES_PURGE_REQUIRED``. + :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:`500 Internal Server Error`: The server experienced an internal failure. Returned with ``TALER_EC_GENERIC_DB_STORE_FAILED``, diff --git a/core/merchant/post-orders-ORDER_ID-abort.rst b/core/merchant/post-orders-ORDER_ID-abort.rst @@ -42,6 +42,10 @@ It is possible that a different wallet succeeded with the payment. This wallet should thus try to refresh all of the coins involved in the payment. Returned with ``TALER_EC_MERCHANT_POST_ORDERS_ID_ABORT_REFUND_REFUSED_PAYMENT_COMPLETE``. + :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:`500 Internal Server Error`: The server experienced an internal failure. Returned with ``TALER_EC_GENERIC_DB_STORE_FAILED``, diff --git a/core/merchant/post-orders-ORDER_ID-claim.rst b/core/merchant/post-orders-ORDER_ID-claim.rst @@ -21,6 +21,10 @@ :http:statuscode:`409 Conflict`: Someone else has already claimed the same order ID with a different nonce. Returned with ``TALER_EC_MERCHANT_POST_ORDERS_ID_CLAIM_ALREADY_CLAIMED``. + :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:`500 Internal Server Error`: The server experienced an internal failure. Returned with ``TALER_EC_GENERIC_DB_COMMIT_FAILED``, diff --git a/core/merchant/post-orders-ORDER_ID-paid.rst b/core/merchant/post-orders-ORDER_ID-paid.rst @@ -33,6 +33,10 @@ and thus cannot process the request. Returned with ``TALER_EC_MERCHANT_GENERIC_INSTANCE_UNKNOWN`` or ``TALER_EC_MERCHANT_GENERIC_ORDER_UNKNOWN``. + :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:`500 Internal Server Error`: The server experienced an internal failure. Returned with ``TALER_EC_GENERIC_DB_STORE_FAILED``. diff --git a/core/merchant/post-orders-ORDER_ID-pay.rst b/core/merchant/post-orders-ORDER_ID-pay.rst @@ -124,6 +124,10 @@ 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 diff --git a/core/merchant/post-orders-ORDER_ID-refund.rst b/core/merchant/post-orders-ORDER_ID-refund.rst @@ -28,6 +28,10 @@ :http:statuscode:`410 Gone`: The wire deadline has past and it is too late to grant a refund. Since protocol **v24**. + :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:`500 Internal Server Error`: The server experienced an internal failure. Returned with ``TALER_EC_GENERIC_DB_FETCH_FAILED`` or diff --git a/core/merchant/post-orders-ORDER_ID-unclaim.rst b/core/merchant/post-orders-ORDER_ID-unclaim.rst @@ -32,6 +32,10 @@ paid as well as cases where the order does not exist or was simply not claimed. + :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:`500 Internal Server Error`: The server experienced an internal failure. Returned with ``TALER_EC_GENERIC_DB_COMMIT_FAILED`` or diff --git a/core/merchant/post-private-accounts-H_WIRE-kycauth.rst b/core/merchant/post-private-accounts-H_WIRE-kycauth.rst @@ -28,6 +28,10 @@ `response <KycAuthWireTransferInstructionResponse>`. :http:statuscode:`404 Not found`: The instance or account are unknown to the exchange. + :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``. **Details:** diff --git a/core/merchant/post-private-accounts.rst b/core/merchant/post-private-accounts.rst @@ -31,6 +31,10 @@ Inactive accounts can be reactivated using this method even if the credit facade information differs from the previous state. Returned with ``TALER_EC_MERCHANT_PRIVATE_ACCOUNT_EXISTS``. + :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:`500 Internal Server Error`: The server experienced an internal failure. Returned with ``TALER_EC_GENERIC_DB_STORE_FAILED``, diff --git a/core/merchant/post-private-groups.rst b/core/merchant/post-private-groups.rst @@ -18,6 +18,10 @@ :http:statuscode:`409 Conflict`: A group with this name already exists. Returned with ``TALER_EC_MERCHANT_PRIVATE_PRODUCT_GROUP_CONFLICTING_NAME``. + :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:`500 Internal Server Error`: The server experienced an internal failure. Returned with ``TALER_EC_GENERIC_DB_STORE_FAILED``. diff --git a/core/merchant/post-private-otp-devices.rst b/core/merchant/post-private-otp-devices.rst @@ -19,6 +19,10 @@ :http:statuscode:`409 Conflict`: An OTP device with this ID already exists with different details. Returned with ``TALER_EC_MERCHANT_PRIVATE_POST_OTP_DEVICES_CONFLICT_OTP_DEVICE_EXISTS``. + :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:`500 Internal Server Error`: The server experienced an internal failure. Returned with ``TALER_EC_GENERIC_DB_START_FAILED``, diff --git a/core/merchant/post-private-pots.rst b/core/merchant/post-private-pots.rst @@ -18,6 +18,10 @@ :http:statuscode:`409 Conflict`: A pot with this name already exists. Returned with ``TALER_EC_MERCHANT_PRIVATE_MONEY_POT_CONFLICTING_NAME``. + :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:`500 Internal Server Error`: The server experienced an internal failure. Returned with ``TALER_EC_GENERIC_DB_STORE_FAILED``. diff --git a/core/merchant/post-private-templates.rst b/core/merchant/post-private-templates.rst @@ -22,6 +22,10 @@ :http:statuscode:`409 Conflict`: A template with this ID already exists. Returned with ``TALER_EC_MERCHANT_PRIVATE_POST_TEMPLATES_CONFLICT_TEMPLATE_EXISTS``. + :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:`500 Internal Server Error`: The server experienced an internal failure. Returned with ``TALER_EC_GENERIC_DB_STORE_FAILED`` or diff --git a/core/merchant/post-private-token.rst b/core/merchant/post-private-token.rst @@ -29,6 +29,10 @@ :http:statuscode:`403 Forbidden`: The provided token has insufficient permissions for the requested scope. Returned with ``TALER_EC_GENERIC_TOKEN_PERMISSION_INSUFFICIENT``. + :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:`500 Internal Server Error`: The server experienced an internal failure. Returned with ``TALER_EC_GENERIC_DB_STORE_FAILED``. diff --git a/core/merchant/post-private-tokenfamilies.rst b/core/merchant/post-private-tokenfamilies.rst @@ -21,6 +21,10 @@ :http:statuscode:`409 Conflict`: A token family with this slug already exists. Returned with ``TALER_EC_MERCHANT_POST_TOKEN_FAMILY_CONFLICT``. + :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:`500 Internal Server Error`: The server experienced an internal failure. Returned with ``TALER_EC_GENERIC_DB_STORE_FAILED``, diff --git a/core/merchant/post-private-transfers.rst b/core/merchant/post-private-transfers.rst @@ -24,6 +24,10 @@ :http:statuscode:`409 Conflict`: The wire transfer identifier is already known to us, but for a different amount. Returned with ``TALER_EC_MERCHANT_PRIVATE_POST_TRANSFERS_CONFLICTING_SUBMISSION``. + :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:`500 Internal Server Error`: The server experienced an internal failure. Returned with ``TALER_EC_GENERIC_DB_STORE_FAILED``. diff --git a/core/merchant/post-private-units.rst b/core/merchant/post-private-units.rst @@ -21,6 +21,10 @@ :http:statuscode:`409 Conflict`: A built-in unit with the same short name already exists. Returned with ``TALER_EC_MERCHANT_GENERIC_UNIT_BUILTIN``. + :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:`500 Internal Server Error`: The server experienced an internal failure. Returned with ``TALER_EC_GENERIC_DB_STORE_FAILED``, diff --git a/core/merchant/post-private-webhooks.rst b/core/merchant/post-private-webhooks.rst @@ -20,6 +20,10 @@ :http:statuscode:`409 Conflict`: A webhook with this ID already exists. Returned with ``TALER_EC_MERCHANT_PRIVATE_POST_WEBHOOKS_CONFLICT_WEBHOOK_EXISTS``. + :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:`500 Internal Server Error`: The server experienced an internal failure. Returned with ``TALER_EC_GENERIC_DB_START_FAILED``, diff --git a/core/merchant/post-reports-REPORT_ID.rst b/core/merchant/post-reports-REPORT_ID.rst @@ -21,6 +21,10 @@ :http:statuscode:`404 Not found`: The report ID *or* the report token are unknown. Returned with ``TALER_EC_MERCHANT_GENERIC_REPORT_UNKNOWN``. + :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:`500 Internal Server Error`: The server experienced an internal failure. Returned with ``TALER_EC_GENERIC_DB_FETCH_FAILED``. diff --git a/core/merchant/post-templates-TEMPLATE_ID.rst b/core/merchant/post-templates-TEMPLATE_ID.rst @@ -24,6 +24,10 @@ The template, instance, or product is unknown. Returned with ``TALER_EC_MERCHANT_GENERIC_TEMPLATE_UNKNOWN`` or ``TALER_EC_MERCHANT_GENERIC_PRODUCT_UNKNOWN``. + :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:`500 Internal Server Error`: The server experienced an internal failure. Returned with ``TALER_EC_GENERIC_DB_FETCH_FAILED``,