Return 400 for missing /api/serialize IDs (#1272)

This commit is contained in:
AK-Khan02
2026-06-10 21:48:33 -04:00
committed by GitHub
parent d12120bab6
commit 16633e3c65
4 changed files with 37 additions and 13 deletions

View File

@@ -276,7 +276,7 @@ impl ApiService {
response_dom.transfer_within(child_ref, object_value);
} else {
msgpack(
return msgpack(
ErrorResponse::bad_request(format!("provided id {id} is not in the tree")),
StatusCode::BAD_REQUEST,
);