taler-rust

GNU Taler code in Rust. Largely core banking integrations.
Log | Files | Refs | Submodules | README | LICENSE

commit 192f81951629522a59c5e409ff80d7fe6793b043
parent fe326e43a6b8e244d969d907929d30f427d5d8ef
Author: Antoine A <>
Date:   Thu, 19 Nov 2026 11:14:08 +0100

taler-api: answer a body that cannot be read with 400

Diffstat:
Mcommon/taler-api/src/extract.rs | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/common/taler-api/src/extract.rs b/common/taler-api/src/extract.rs @@ -93,9 +93,10 @@ pub async fn decompressed_strict_body<const MAX_SIZE: usize>( return Err(too_large("Body")); } Err(err) => { - return Err(failure( + return Err(failure_status( ErrorCode::GENERIC_UNEXPECTED_REQUEST_ERROR, format!("Failed to read body: {err}"), + StatusCode::BAD_REQUEST )); } },